Statement Blocks

By: Dusty Arlia
Published on Monday, April 15, 2013, 07:43 PM
Last Updated on Wednesday, July 15, 2015 at 4:39 PM
Total Updates: 4

Statement blocks combine multiple statements into one compound statement. Each statement within a statement block is enclosed inside the block's curly braces ({}). There is no semicolon after the closing curly brace. The statements within the statement block end with semicolons. Variables declared within a statement block are not private to the block, because JavaScript does not have block scope.

Comments:

Ad: