Files
developer-roadmap/roadmaps/javascript/content/throw-statement@ReGIniyLYl5hGExchrJd2.md
Arik Chakma 274082fd77 feat: clean roadmap content and sync scripts (#10181)
* refactor: clean to roadmap content

* refactor: move shared helpers into scripts/lib
2026-07-28 05:45:17 +06:00

9 lines
642 B
Markdown

# Throw Statement
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:
- [@article@JavaScript MDN Docs](https://developer.mozilla.org/en-us/docs/web/javascript/reference/statements/throw)
- [@article@Error Handling](https://javascript.info/error-handling)
- [@article@"Throw" operator](https://javascript.info/try-catch#throw-operator)