🔀switch
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
JS ⟩ statement ⟩ control flow ⟩ branch ⟩ switch
switch (<expr>) {
case <value1> : <statements>
case <value2> : <statements>
default : <statements>
}
statement is needed when you want to out of a statement that is not the nearest enclosing / switch.