How do default parameters affect the arguments object in a function?

  • They override the arguments object
  • They have no impact on the arguments object
  • They are added to the arguments object
  • They remove the arguments object
Default parameters in ES6 are added to the arguments object, making it a useful feature for accessing all passed arguments, even if they are not explicitly named in the function signature. This can be advantageous in certain scenarios where a dynamic number of arguments need to be handled.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *