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

JavaScript Coding Exercise 23

Advertisement

728x90
javascript
1let [a, ...b, c] = [1, 2, 3, 4, 5];
2
3console.log(a, b, c);

Choose the correct output:

A
1, [2, 3, 4, 5]
B
1, {2, 3, 4, 5}
C
SyntaxError
D
1, [2, 3, 4]

Advertisement

Responsive Ad
23of86