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) 'John', { age: 30, job: 'Developer' }
Explanation:
The code uses destructuring assignment to extract properties from the person object.
The name property of person is assigned to the name variable, so name becomes 'John'.
The rest of the properties in the object are gathered into the info variable using the spread syntax .... In this case, info becomes an object containing the remaining properties: { age: 30, job: 'Developer' }.