In ES6, default parameters can be used to simulate named parameters in a function.

  • Variables
  • Arguments
  • Constants
  • Expressions
Default parameters in ES6 allow you to assign default values to function parameters. When a value is not provided during the function call, the default value is used. This behavior is similar to having named parameters in functions. The correct option here is "Arguments," representing the parameters in a function.
Add your answer
Loading...

Leave a comment

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