• Skip to main content
  • Skip to search
    • Technologies Overview
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs
    • Browser Extensions
    • MathML
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
    • Send Feedback
    • Contribute to MDN
    • Report a content issue 🌐
    • Report a platform issue 🌐
  1. Glossaire
  2. Bloc
  3. Bloc (script)
  • Change language
  • View in English

Table of contents

  • Pour en savoir plus

Bloc (script)

En JavaScript, un bloc est un ensemble d'instructions entouré d'accolades ("{}"). Par exemple, vous pouvez placer un bloc d'instructions après if (condition) pour indiquer à l'interpréteur d'ignorer la totalité du bloc si la condition est fausse.

Pour en savoir plus

Apprendre à ce sujet

  • Bloc d'instructions en JavaScript

 

Found a problem with this page?

  • Source on GitHub
  • Report a problem with this content on GitHub
  • Want to fix the problem yourself? See our Contribution guide.

Last modified: Apr 21, 2021, by MDN contributors

Change your language
  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • About
  • MDN Web Docs Store
  • Contact Us
  • Firefox

MDN

Mozilla

© 2005-2021 Mozilla and individual contributors. Content is available under these licenses.

  • Terms
  • Privacy
  • Cookies