Compound statements

By: Dusty Arlia
Published on Wednesday, April 17, 2013, 08:36 AM
Last Updated on Monday, July 06, 2015 at 2:24 PM
Total Updates: 3

Compound statements are sequences of statements that are enclosed in curly braces ({}) that are treated as a single statement. These are called statement blocks. You can use compound statements in places where JavaScript expects a single statement.