JS SWITCH CASE EXAMPLE
Run
<html>
<head>
    <script>
        let a = 1;
        switch (a)
        {
            case 1: alert('case 1 has been executed');
                break; 
            case 2:
                alert("case 2 has been executed");
                break;
            case 3:
                alert("case 3 has been executed");
                break;
            case 4:
                alert("case 4 has been executed");
                break;
            default:
                alert("default case executed");
        }
    </script>
</head>
<body>
    <!-- HTML body -->
</body>
</html>