0
Could you explain it?
var sub = 'Eng'; switch (sub) { case 'Eng': document.write(1); case 'Es': document.write(2); } // output '12'
2 Réponses
+ 4
Because there is no break statement between the cases.
0
Thanks
var sub = 'Eng'; switch (sub) { case 'Eng': document.write(1); case 'Es': document.write(2); } // output '12'