From 83896bf4ca2ae07e2106d7e24c2a356791e33116 Mon Sep 17 00:00:00 2001 From: kaustuvaks <69819107+kaustuvaks@users.noreply.github.com> Date: Fri, 8 Jul 2022 17:49:34 +0530 Subject: [PATCH] Update 01_javascript_refresher.md Some typos in code --- 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..6a11647 100644 --- a/01_Day_JavaScript_Refresher/01_javascript_refresher.md +++ b/01_Day_JavaScript_Refresher/01_javascript_refresher.md @@ -2147,7 +2147,7 @@ a. Create a function called signUp which allows user to add to the collection. I So far we have seen many builtin JavaScript functions. In this section, we will focus on custom functions. What is a function? Before we start making functions, lets understand what function is and why we need function? A function is a reusable block of code or programming statements designed to perform a certain task. -A function is declared by a function key word followed by a name, followed by parentheses (). A parentheses can take a parameter. If a function take a parameter it will be called with argument. A function can also take a default parameter. To store a data to a function, a function has to return certain data types. To get the value we call or invoke a function. +A function is declared by a function key word followed by a name, followed by parentheses {}. A parentheses can take a parameter. If a function take a parameter it will be called with argument. A function can also take a default parameter. To store a data to a function, a function has to return certain data types. To get the value we call or invoke a function. Function makes code: - clean and easy to read @@ -3005,7 +3005,7 @@ const fullStack = [ ] for (const [first, second, third, fourth] of fullStack) { - console.log(first, second, third, fourt) + console.log(first, second, third, fourth) } ```