osbo.com | Jesus | Bible | HTML | CSS | JavaScript | Flash | Unity | Xcode | Other
Overview
Array
Comments
Date
Enable
Functions
getElementById
innerHTML
Conditional Statements
if
else
else if
switch
Dialog Boxes
alert
confirm
prompt
Loops
for
for in
for each in
while
do while
switch executes code when the condition matches a case.
Break ends the code.
Default executes when no case is a match.
Δ
switch (condition) { case 1: code break; case 2: code break; ... default: code }
Mozilla Developer Network