Block (scripting)
InJavaScript, ablock is a collection of relatedstatements enclosed in braces ("{}"). For example, you can put a block of statements after anif (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.