Skip to content

Latest commit

 

History

History

switch-statements

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

JavaScript - Switch statement

Switch statement is the alternative of if statement but the syntax would be different.

  • Syntax:
    switch (key) {
    case value:
        break;
    default:
        break;
    }