+ 1
i dont get ans plzz give ans fast
var x=3; switch(x){ case 1: document.write(x); break; case 2: document.write(x+2); break; default: documet.write(x+5);}
3 Answers
+ 5
answer will be default x+5 = 8
+ 1
can you specify exactly what answer you need?
0
Spelling mistake in 'document' in default case.
https://www.sololearn.com/Discuss/2628286/?ref=app