How do default parameters interact with destructuring assignment in function arguments?

  • They can't be used together
  • Destructuring assignment takes precedence
  • The function ignores the default parameters
  • Destructuring is not supported in ES6
Default parameters and destructuring can be used together, and destructuring takes precedence. Explanation should elaborate on how they work together.
Add your answer
Loading...

Leave a comment

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