From 4edac0ccd49e8ec9c71a3072344247d8330a6ebf Mon Sep 17 00:00:00 2001 From: Rabeeh Ebrahim <65481473+codewithrabeeh@users.noreply.github.com> Date: Mon, 6 Jun 2022 16:57:52 +0530 Subject: [PATCH] fixed spelling mistake --- 14_Day_Error_handling/14_day_error_handling.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/14_Day_Error_handling/14_day_error_handling.md b/14_Day_Error_handling/14_day_error_handling.md index 928c8c9..d17e7bd 100644 --- a/14_Day_Error_handling/14_day_error_handling.md +++ b/14_Day_Error_handling/14_day_error_handling.md @@ -103,7 +103,7 @@ Error message firstName is not defined In any case I will be executed ``` -throw: the throw statement allows us to create a custom error. We can through a string, number, boolean or an object. Use the throw statement to throw an exception. When you throw an exception, expression specifies the value of the exception. Each of the following throws an exception: +throw: the throw statement allows us to create a custom error. We can throw a string, number, boolean or an object. Use the throw statement to throw an exception. When you throw an exception, expression specifies the value of the exception. Each of the following throws an exception: ```js throw 'Error2' // generates an exception with a string value