JS

JavaScript Fundamentals 1 - Default parameter valu...

23.

What is the purpose of using default parameter values in JavaScript function declarations?

Default parameter values allow a function to be called without providing arguments for all of its parameters.

Default parameter values are used to set initial values for function arguments.

Default parameter values can only be used in arrow functions, not in regular function declarations.

Default parameter values can only be set for the last parameter of a function.