Spread & Rest Operators Interview Questions – JavaScript Spread & Rest Operators Online Quiz

Question 1:  What is the purpose of the spread operator in JavaScript?

Question 2:  Which of the following is used to collect multiple elements into an array in JavaScript?

Question 3:  How does the spread operator work with objects in JavaScript?

Question 4:  What is the symbol used for the spread operator in JavaScript?

Question 5:  What does the rest operator allow in JavaScript function parameters?

Question 6:  Which of these can be used as the rest operator in a function definition?

Question 7:  The spread operator can be used to do which of the following?

Question 8:  What is the limitation of using the rest operator in JavaScript?

Question 9:  Which of these will not work with the spread operator in JavaScript?

Question 10:  Can the spread operator be used to copy the properties of one object into another?

Leave a Reply