• Switch/Case not working?

 

Am I doing something wrong?

My code:

switch (1) {
        case 1:
            console.log("YEAH");
        case 2:
            console.log("NAY");
        default:
            console.log("NADA");
    }

My output:

YEAH NAY NADA

I expected output

YEAH

Thanks :)

.