From 83958373396da437546525471686e3365dfe965a Mon Sep 17 00:00:00 2001 From: Jozias Martini Date: Thu, 1 Sep 2022 17:58:18 -0300 Subject: [PATCH] Update throw statement in JavaScript roadmap (#1659) --- .../100-exception-handling/100-throw-statement.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/content/roadmaps/106-javascript/content/107-javascript-control-flow/100-exception-handling/100-throw-statement.md b/content/roadmaps/106-javascript/content/107-javascript-control-flow/100-exception-handling/100-throw-statement.md index 0314ab31b..8ea8ceeb1 100644 --- a/content/roadmaps/106-javascript/content/107-javascript-control-flow/100-exception-handling/100-throw-statement.md +++ b/content/roadmaps/106-javascript/content/107-javascript-control-flow/100-exception-handling/100-throw-statement.md @@ -1 +1,6 @@ -# Throw statement \ No newline at end of file +# 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) + +Throw Statement \ No newline at end of file