mozilla

Compare Revisions

switch

Change Revisions

Revision 235898:

Revision 235898 by Skierpage on

Revision 122001:

Revision 122001 by Skierpage on

Title:
switch
switch
Slug:
JavaScript/Reference/Statements/switch
JavaScript/Reference/Statements/switch
Content:

Revision 235898
Revision 122001
n7    <h2 name="Summary">n7    <h2 id="Summary" name="Summary">
nn13    <h2 id="Version_Information">
14      Version Information
15    </h2>
n38    <h2 name="Syntax">n41    <h2 id="Syntax" name="Syntax">
n58    <h2 name="Parameters">n61    <h2 id="Parameters" name="Parameters">
n63        <code>expression</code>&nbsp;n66        <code>expression</code>
n71        <code>labelN</code>&nbsp;n74        <code>labelN</code>
n79        <code>statementsN</code>&nbsp;n82        <code>statementsN</code>
n87        <code>statements_def</code>&nbsp;n90        <code>statements_def</code>
n93    <h2 name="Description">n96    <h2 id="Description" name="Description">
n103      The optional <code><a href="/en/Core_JavaScript_1.5_Referenn106      The optional <code><a href="/en/JavaScript/Reference/Statem
>ce/Statements/break" title="en/Core_JavaScript_1.5_Reference/Stat>ents/break" title="en/Core_JavaScript_1.5_Reference/Statements/br
>ements/break">break</a></code> statement associated with each cas>eak">break</a></code> statement associated with each case label e
>e label ensures that the program breaks out of switch once the ma>nsures that the program breaks out of switch once the matched sta
>tched statement is executed and continues execution at the statem>tement is executed and continues execution at the statement follo
>ent following switch. If <code>break</code> is omitted, the progr>wing switch. If <code>break</code> is omitted, the program contin
>am continues execution at the next statement in the <code>switch<>ues execution at the next statement in the <code>switch</code> st
>/code> statement.>atement.
n105    <h2 name="Examples">n108    <h2 id="Examples" name="Examples">
t108    <h3 name="Example:_Using_switch">t111    <h3 id="Example:_Using_switch" name="Example:_Using_switch">

Back to History