Is it possible to destructure properties from nested objects?

  • Yes
  • No
  • Only if the nested object has a single property
  • Only if the nested object is declared as a constant
Yes, in ES6, destructuring assignment can be used to extract properties from nested objects. This allows for a more convenient and concise way of accessing values within nested structures, enhancing code simplicity.
Add your answer
Loading...

Leave a comment

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