JavaScript : Switch statement
23.10.2012 13:02 JavaScript | 0 comments | source: | 3871 clicks
The switch statement allows us to make a decision from the number of choices.
If a match is found to a case label, the program executes the associated statement.
If no match is found with any of the case statements, only the statements following the default are executed.
|