Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 240 Bytes

File metadata and controls

13 lines (11 loc) · 240 Bytes

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;
    }