Unlimited number of parameters in regular function

PHOTO EMBED

Fri Sep 16 2022 13:32:03 GMT+0000 (Coordinated Universal Time)

Saved by @sreejithbs

// Let us access the arguments object
​
function sumAllNums() {
 console.log(arguments)
}

sumAllNums(1, 2, 3, 4)
// Arguments(4) [1, 2, 3, 4, callee: ƒ, Symbol(Symbol.iterator): ƒ]
content_copyCOPY

https://github.com/Asabeneh/30-Days-Of-JavaScript/blob/master/07_Day_Functions/07_day_functions.md