Javascript Quiz: How well do you know Destructuring in JS

Опубликовано: 05 Октябрь 2024
на канале: Programming Geek
52
3

Are you ready for another code challenge? Join me in this video as you test your coding knowledge with the simple quiz questions.

Don't forget to make your guess in the comments below.

-------------------------------------------------------------------------------------------

🔔Like and subscribe for more videos. 🔔

Connect me on linkedin :
https://www.linkedin.com/in/meenakshilodhi...
https://www.linkedin.com/in/rk-barnwal23/
------------------------------------------------------------------------------------------

Answer OPTION: A) undefined

Explanation:
The code uses destructuring assignment to extract the properties name, age, and gender from the person object.

Since the person object does not have a gender property, the value of gender will be undefined after destructuring.

Therefore, the output will be undefined.