What does an ellipsis do in JavaScript?

In Javascript, ellipses ( … ) are used for two separate shorthands — rest syntax and spread syntax . Rest syntax will set the remaining elements of a collection to a defined variable.

Sizin İçin Seçtik  What is spread and rest operator?

Leave a Reply

Your email address will not be published. Required fields are marked *