+ 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);}

16th Dec 2020, 7:33 AM
Harshitha R
Harshitha R - avatar
3 Réponses
+ 5
answer will be default x+5 = 8
16th Dec 2020, 8:05 AM
Krish
Krish - avatar
+ 1
can you specify exactly what answer you need?
16th Dec 2020, 7:36 AM
Success Ours
Success Ours - avatar
0
Spelling mistake in 'document' in default case. https://www.sololearn.com/Discuss/2628286/?ref=app
16th Dec 2020, 12:27 PM
Jayakrishna 🇮🇳