Open In App

Web technologies Questions | JavaScript Course Quiz 1 | Question 33

What will be the output of the following code snippet
const arr=[1,2,3,4,5]
console.log(…arr)

(A) [1 2 3 4 5]
(B) …[1 2 3 4 5]
(C) 1 2 3 4 5
(D) …1 2 3 4 5

Answer: (C)
Explanation: The spread operator expands the array in its individual values
Quiz of this Question
Please comment below if you find anything wrong in the above post

Article Tags :