In what ways can destructuring assignment be utilized in function parameters?

  • Extract specific values
  • Set default parameter values
  • Both 1 and 2
  • Neither 1 nor 2
Destructuring assignment in function parameters allows you to extract specific values from objects or arrays passed as arguments. Additionally, you can set default parameter values using destructuring, providing flexibility in handling different cases.
Add your answer
Loading...

Leave a comment

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