From 180bcbbd5a50bacda6d2c50c8d17e10f7678fd42 Mon Sep 17 00:00:00 2001 From: JoemonReflections <105621339+JoemonReflections@users.noreply.github.com> Date: Thu, 8 Dec 2022 14:24:58 +0530 Subject: [PATCH 1/3] Spelling Mistake --- 01_Day_JavaScript_Refresher/01_javascript_refresher.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/01_Day_JavaScript_Refresher/01_javascript_refresher.md b/01_Day_JavaScript_Refresher/01_javascript_refresher.md index 7d03fb4..94650aa 100644 --- a/01_Day_JavaScript_Refresher/01_javascript_refresher.md +++ b/01_Day_JavaScript_Refresher/01_javascript_refresher.md @@ -1724,7 +1724,7 @@ for (let i = 0; i < 3; i++) { // console.log(i), Uncaught ReferenceError: gravity is not defined ``` -The scope _let_ and _const_ is the same. The difference is only reassigning. We can not change or reassign the value of const variable. I would strongly suggest you to use _let_ and _const_, by using _let_ and _const_ you will writ clean code and avoid hard to debug mistakes. As a rule of thumb, you can use _let_ for any value which change, _const_ for any constant value, and for array, object, arrow function and function expression. +The scope _let_ and _const_ is the same. The difference is only reassigning. We can not change or reassign the value of const variable. I would strongly suggest you to use _let_ and _const_, by using _let_ and _const_ you will write clean code and avoid hard to debug mistakes. As a rule of thumb, you can use _let_ for any value which change, _const_ for any constant value, and for array, object, arrow function and function expression. ### 7. Object From fc457f3e406b0706c3cc264f34beb480fadbc434 Mon Sep 17 00:00:00 2001 From: JoemonReflections <105621339+JoemonReflections@users.noreply.github.com> Date: Thu, 8 Dec 2022 22:40:43 +0530 Subject: [PATCH 2/3] Updated Space --- 01_Day_JavaScript_Refresher/01_javascript_refresher.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/01_Day_JavaScript_Refresher/01_javascript_refresher.md b/01_Day_JavaScript_Refresher/01_javascript_refresher.md index 94650aa..0c16c0b 100644 --- a/01_Day_JavaScript_Refresher/01_javascript_refresher.md +++ b/01_Day_JavaScript_Refresher/01_javascript_refresher.md @@ -2133,10 +2133,12 @@ const products = [ ``` Imagine you are getting the above users collection from a MongoDB database. -a. Create a function called signUp which allows user to add to the collection. If user exists, inform the user that he has already an account. + + a. Create a function called signUp which allows user to add to the collection. If user exists, inform the user that he has already an account. b. Create a function called signIn which allows user to sign in to the application 3. The products array has three elements and each of them has six properties. + a. Create a function called rateProduct which rates the product b. Create a function called averageRating which calculate the average rating of a product From 7d572bd118e09b101359dd72a4ab1e15f001f98f Mon Sep 17 00:00:00 2001 From: JoemonReflections <105621339+JoemonReflections@users.noreply.github.com> Date: Tue, 20 Dec 2022 10:24:12 +0530 Subject: [PATCH 3/3] Updated URL --- 21_Introducing_Hooks/21_introducing_hooks.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/21_Introducing_Hooks/21_introducing_hooks.md b/21_Introducing_Hooks/21_introducing_hooks.md index 5a04e77..03357dc 100644 --- a/21_Introducing_Hooks/21_introducing_hooks.md +++ b/21_Introducing_Hooks/21_introducing_hooks.md @@ -14,7 +14,7 @@ -[<< Day 20](../20_projects/20_projects.md) | [Day 22>>]() +[<< Day 20](../20_projects/20_projects.md) | [Day 22>>](../22_Form_Using_Hooks/22_form_using_hooks.md) ![30 Days of React banner](../images/30_days_of_react_banner_day_21.jpg) @@ -404,4 +404,4 @@ ReactDOM.render(, rootElement) Convert everything you wrote to React hooks. 🎉 CONGRATULATIONS ! 🎉 -[<< Day 20](../20_projects/20_projects.md) | [Day 22>>]() +[<< Day 20](../20_projects/20_projects.md) | [Day 22>>](../22_Form_Using_Hooks/22_form_using_hooks.md)