+ 1

Where's the error in this js code?

Try to count anything and it will output "undefined" https://code.sololearn.com/Wj1MQ6T1o4U7/?ref=app

7th Apr 2018, 10:24 PM
Evil Dog
Evil Dog - avatar
1 Answer
+ 2
You need to change 17 line to "window.sign = id" , because in switch case statement you check for strings not for textNode.
7th Apr 2018, 10:47 PM
Vladi Petrov
Vladi Petrov - avatar