From b055c1641bbcd21b599082ff40e117132e9304ae Mon Sep 17 00:00:00 2001 From: girish-habile Date: Tue, 2 Jul 2024 22:58:20 +0530 Subject: [PATCH] Day 7:fun update and correction in rest operator --- 07_Day_Functions/07_day_functions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/07_Day_Functions/07_day_functions.md b/07_Day_Functions/07_day_functions.md index 17d90873e..7fd3eb101 100644 --- a/07_Day_Functions/07_day_functions.md +++ b/07_Day_Functions/07_day_functions.md @@ -197,10 +197,10 @@ console.log(printFullName('Asabeneh', 'Yetayeh')) ```js // function with multiple parameters -function functionName(parm1, parm2, parm3,...){ +function functionName(parm1, parm2, parm3,...otherParms){ //code goes here } -functionName(parm1,parm2,parm3,...) // during calling or invoking three arguments needed +functionName(parm1,parm2,parm3,parm4,...parm5) // during calling or invoking three arguments needed // this function takes array as a parameter and sum up the numbers in the array