JS Coding Questions Logo
JS Coding Questions
#36🎯 Exercise💻 Code

JavaScript Coding Exercise 36

Advertisement

728x90
javascript
1const { a: x = 10, b: y = 20 } = { a: 30 };
2
3console.log(x);
4
5console.log(y);

Choose the correct output:

A
30, 20
B
10, 20
C
10, undefined
D
30, undefined

Advertisement

Responsive Ad
35of86