GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing syntaxdb.com — Switch Case in JavaScript - SyntaxDB - JavaScript Syntax Reference LanguageVersion: 1.8.5Categories
Control FlowSwitch Case in JavaScriptA switch case is used test variable equality for a list of values, where each value is a case. When the variable is equal to one of the cases, the statements following the case are executed. SyntaxNotesA break statement ends the switch case. The optional default case is for when the variable does not equal any of the cases. Example
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |