Computer Science, asked by harshahoney6131, 10 months ago

How to use variable number of arguments to function in JavaScript?

Answers

Answered by amalraj142003
0

arguments is an Array-like object accessible inside functions that contains the values of the arguments passed to that function.

Note: If you're writing ES6 compatible code, then rest parameters should be preferred.

Note: “Array-like” means that arguments has a length property and properties indexed from zero, but it doesn't have Array's built-in methods like forEach() and map(). See §Description for details.

mark it as a brainlist

Similar questions