Mega Code Archive

 
Categories / JavaScript Tutorial / Language Basics
 

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); }