From 05800e350b0c86eee2a31c0236d944fad60d0a50 Mon Sep 17 00:00:00 2001 From: Kamrul Islam Shahin <44506464+shahin-cuet@users.noreply.github.com> Date: Thu, 15 Oct 2020 20:27:06 +0600 Subject: [PATCH] remove unused parentheses --- 07_Day_Functions/07_day_functions.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/07_Day_Functions/07_day_functions.md b/07_Day_Functions/07_day_functions.md index 202ffad..bb57782 100644 --- a/07_Day_Functions/07_day_functions.md +++ b/07_Day_Functions/07_day_functions.md @@ -239,7 +239,7 @@ function sumAllNums() { console.log(arguments) } -sumAllNums(1, 2, 3, 4)) +sumAllNums(1, 2, 3, 4) // Arguments(4) [1, 2, 3, 4, callee: ƒ, Symbol(Symbol.iterator): ƒ] ``` @@ -269,11 +269,11 @@ console.log(sumAllNums(15, 20, 30, 25, 10, 33, 40)) // 173 ​ const sumAllNums = (...args) => { // console.log(arguments), arguments object not found in arrow function - // instead we use an a parameter followed by spread operator + // instead we use an a parameter followed by spread operator (...) console.log(args) } -sumAllNums(1, 2, 3, 4)) +sumAllNums(1, 2, 3, 4) // [1, 2, 3, 4] ```