The Block Statement



Navigation Aids -- This Page           Navigation Aids -- This Topic           Navigation Aids -- This Site








Introduction And Review

The block statement is an ECMA-262 core statement that is not denoted by a keyword. It is denoted by a pair of curly braces, that is: { }. The curly braces must be used in matching pairs. The block statement will group statements that belong together. The block statements are commonly used in function definitions and control statements.





Statement Syntax


{statements}



More on Syntax and Statement Behavior





Common Uses





ECMA-262 Section 12.1

The block statement is an ECMAScript core statement and is detailed is section 12.1 of the ECMAScript Language Specification.



Top            

Rx4AJAX        About Us | Topic Index | Contact Us | Privacy Policy | 2008 This Site Built By PPThompson