How do you define a function with an indefinite number of parameters in JavaScript?
By using the indefinite keyword after the parameter names.
indefinite
By using the ... spread syntax before the parameter name.
...
By enclosing the parameter names in square brackets.
By using the params keyword before the parameter names.
params