Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

Web technologies Questions | JavaScript Course Quiz 1 | Question 33

  • Last Updated : 26 Aug, 2021

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

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!