Spread Operator- Donated by ‘...’ and is followed by the variable. The syntax of the spread operator would look like this for example:- ‘...X’. Spread operators manipulated objects and arrays which is the prime reason it is used in ES6. It is used for copying the property of one object to another.

Default Operator- In order to initialize a function using default values, the default operator is deployed. The parameter’s value can be anything- a number or a function or null.

Rest Parameter- This operator is used for recovering all the arguments that are required to invoke a function. This allows us to put items belonging to different categories separate. The rest parameter allows combining the parameters in a common array parameter.

Suggest An Answer

No suggestions Available!