11.
How to use destructuring to extract properties from an object?
12.
What will be the result of let { a, b } = { a: 3, b: 4 };?
13.
Which of these correctly assigns values to variables using array destructuring?
14.
What does const do in JavaScript?
15.
Can a constant objects properties be changed?
16.
What will const x = { a: 1 }; x.a = 2; do?
17.
Which assignment will fail?
18.
How do you assign default values in destructuring?
19.
What does let { a: alpha, b: beta } = { a: 1, b: 2 }; do?
20.
What will be the output of let { a, b } = { a: 1, b: 2, c: 3 };?