5.5.3 Switch multiple selection statement
Previously we discussed the if single-selection statement and the if ..else double selection statement. In certain situations a variable or expression is tested separately for each of value it may assume and different actions are taken for each value. JavaScript provides the switch selection statement to handle such decision making. Syntax: Switch(n) { Case1: execute
more..