Basic Javascript syntax
- Comments are marked with /* */
- Lines are ended with a semicolon (;)
- Literals are enclosed in double-quotes (")
- The structure of the conditional switch statement is:
switch(n)
{
case 1:
execute code block 1
break
case 2:
execute code block 2
break
default:
code to be executed if n is
different from case 1 and 2
}