+ 1

JavaScript doesn't work

My whole JS Freezes when there is an error at the middle of the Script. The first line is just a prompt and the middle is a "switch " . However, the prompt works without the switch... Please reply! Ps. I have searched but none of the topics are related to mine.

23rd Jun 2018, 1:57 AM
Anson
Anson - avatar
4 Respostas
+ 5
Add : after case "-9" on line 13. Delete case keyword on line 16.
23rd Jun 2018, 2:01 AM
Hatsy Rei
Hatsy Rei - avatar
+ 2
code link please
23rd Jun 2018, 1:58 AM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
0
is it that one mistake can make the whole script freeze?
23rd Jun 2018, 2:11 AM
Anson
Anson - avatar