DEV Community

sachin
sachin

Posted on • Originally published at codesquery.com on

What Is The Difference Between JavaScript REST and Spread

In this article, we are going to learn what is the difference between the Javascript REST and Spread. ES6 introduced the three dots(…) syntax in the Javascript and can be used depending upon the context, as a REST or Spread operator. In short, REST collects all the remaining elements into an array while Spread operator [...]

The post What Is The Difference Between JavaScript REST and Spread appeared first on CodesQuery.

Top comments (0)