block, comments, variables

ITWeb/개발일반 2008. 2. 20. 15:57
 
JavaScript Blocks
{}
-JavaScript does not have block scope.
-Blocks should only be used with structured statements
§function, if, switch, while, for, do, try
JavaScript Comments
-Single-Line comments : //
-Multi-Line comments : /*…*/
JavaScript Variables
-Variables are "containers" for storing information.
-var keyword is defined local variable.
: