Braces indicate code blocks : Variables : Language Basics JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Language Basics » Variables »

 

Braces indicate code blocks








Code blocks indicates a series of statements that should be executed in sequence.

Code blocks are enclosed between an opening brace ({) and a closing brace (}).








if (test1 == "red") {
   test1 = "blue";
   alert(test1);
}







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Language Basics
» Variables