Day 7:fun update and correction in rest operator

pull/937/head
girish-habile 6 months ago
parent 55d8e3dbc0
commit b055c1641b

@ -197,10 +197,10 @@ console.log(printFullName('Asabeneh', 'Yetayeh'))
```js ```js
// function with multiple parameters // function with multiple parameters
function functionName(parm1, parm2, parm3,...){ function functionName(parm1, parm2, parm3,...otherParms){
//code goes here //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 // this function takes array as a parameter and sum up the numbers in the array

Loading…
Cancel
Save