Block (scripting)

In JavaScript, a block is a collection of related statements enclosed in braces ("{}"). For example, you can put a block of statements after an if (condition) block, indicating that the interpreter should run the code inside the block if the condition is true, or skip the whole block if the condition is false.

Learn more

Learn about it


Document Tags and Contributors

 Contributors to this page: chrisdavidmills, klez, rolfedh, Jeremie, Andrew_Pfeiffer
 Last updated by: chrisdavidmills,