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

pull/4053/head
roadmap bot 1 year ago committed by Kamran Ahmed
parent a1f528bdf2
commit d5a9ec1b6f
  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) 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: 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