InterviewBuddy
All interview questions

What is the difference between spread and rest syntax?

Beginner

Answer

Spread expands values into another expression. Rest gathers remaining values into a binding, such as the remaining function arguments.