try...catch only works for runtime errors
For try...catch to work, the code must be runnable. In other words, it should be valid JavaScript.
It won’t work if the code is syntactically wrong, for instance it has unmatched curly braces:
try...catch only works for runtime errors
For try...catch to work, the code must be runnable. In other words, it should be valid JavaScript.
It won’t work if the code is syntactically wrong, for instance it has unmatched curly braces:
For further actions, you may consider blocking this person and/or reporting abuse
Christopher Duran -
Michael Tharrington -
SachaDee -
Yu Hamada -
Top comments (0)