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

JavaScript Coding Exercise 44

Advertisement

728x90
javascript
1const obj = { key: "value" };
2
3const array = [...obj];
4
5console.log(array);

Choose the correct output:

A
['key', 'value']
B
TypeError
C
[]
D
['key']

Advertisement

Responsive Ad
43of86