Switch
  • Switch cases use strict comparison (===)
  • var day = 4;
    var text;
    
    switch (day)
    {
    	case 1:
    		text = 'Monday';
    		break;
    	case 2:
    		text = 'Tuesday';
    		break;
    	default:
    		text = 'Unknown';
    }
    
    console.log(text);