Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 1107717 of Block (scripting)

  • Revision slug: Glossary/Block/Scripting
  • Revision title: Block (scripting)
  • Revision id: 1107717
  • Created:
  • Creator: klez
  • Is current revision? No
  • Comment Technical review completed.

Revision Content

In {{glossary("JavaScript")}}, a block is a collection of related {{glossary("statement","statements")}} enclosed in braces ("{}"). For example, you can put a block of statements after {{jsxref("Statements/if...else","if (condition)")}}, indicating that the interpreter must skip the whole block if the condition is false.

Learn more

Learn about it

 

Revision Source

<p>In {{glossary("JavaScript")}}, a block is a collection of related {{glossary("statement","statements")}} enclosed in braces ("{}"). For example, you can put a block of statements after {{jsxref("Statements/if...else","if (condition)")}}, indicating that the interpreter must skip the whole block if the condition is false.</p>

<h2 id="Learn_more">Learn more</h2>

<h3 id="Learn_about_it">Learn about it</h3>

<ul>
 <li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/block">JavaScript block statement</a></li>
</ul>

<p> </p>
Revert to this revision