From b7d4e89479aa1871fed920bce15e4183fbaccb6c Mon Sep 17 00:00:00 2001 From: sharukh-vs <111633411+sharukh-vs@users.noreply.github.com> Date: Fri, 11 Oct 2024 20:50:44 +0530 Subject: [PATCH] Update 01_javascript_refresher.md Some errors in text --- 01_Day_JavaScript_Refresher/01_javascript_refresher.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/01_Day_JavaScript_Refresher/01_javascript_refresher.md b/01_Day_JavaScript_Refresher/01_javascript_refresher.md index 7d03fb4..2869ae7 100644 --- a/01_Day_JavaScript_Refresher/01_javascript_refresher.md +++ b/01_Day_JavaScript_Refresher/01_javascript_refresher.md @@ -3843,7 +3843,7 @@ class Person { } ``` -We have created an Person class but it does not have any thing inside. +We have created a Person class but it does not have any thing inside. #### Class Instantiation @@ -3869,7 +3869,7 @@ Let use the class constructor to pass different properties for the class. #### Class Constructor -The constructor is a builtin function which allows as to create a blueprint for our object. The constructor function starts with a keyword constructor followed by a parenthesis. Inside the parenthesis we pass the properties of the object as parameter. We use the _this_ keyword to attach the constructor parameters with the class. +The constructor is a builtin function which allows us to create a blueprint for our object. The constructor function starts with a keyword constructor followed by a parenthesis. Inside the parenthesis we pass the properties of the object as parameter. We use the _this_ keyword to attach the constructor parameters with the class. The following Person class constructor has firstName and lastName property. These properties are attached to the Person class using _this_ keyword. _This_ refers to the class itself.