chore: add resource under javascript:javascript-control-flow:exception-handling:throw-statement

pull/3556/merge
roadmap bot 2 years ago
parent 45b729d708
commit 14060bda94
  1. 3
      src/data/roadmaps/javascript/content/107-javascript-control-flow/100-exception-handling/100-throw-statement.md

@ -3,3 +3,6 @@
The throw statement throws a user-defined exception. Execution of the current function will stop (the statements after throw won't be executed), and control will be passed to the first catch block in the call stack. If no catch block exists among caller functions, the program will terminate. (excerpt from MDN)
Visit the following resources to learn more:
- [throw statement - w3schools](https://www.w3schools.com/jsref/jsref_throw.asp)
- [JavaScript MDN Docs](https://developer.mozilla.org/en-us/docs/web/javascript/reference/statements/throw)
Loading…
Cancel
Save