Mark As Completed Discussion

Let's test your knowledge. Is this statement true or false?

Destructuring in javascript extracts array’s values and object’s properties into variables.

JAVASCRIPT
1const myObj  = 
2{
3    name: "Harvey",
4    age: 50
5}
6 
7//Destructuring
8const {name,age} = myObj;
9 
10console.log(name); //Harvey
11console.log(age);  //50

Press true if you believe the statement is correct, or false otherwise.