Modern JavaScript
About Lesson

In this JavaScript lesson we are going to talk about JavaScript Spread Operator, so it is used with arrays and its syntax is exactly the same as that of Rest Operator. and it is used to split the content of an array.

 

 

Let’s create an example.

 

 

Also we can use with the strings.

 

 

some time we need to convert a string in to list of characters,  than we can use spread operator.

 

 

We can use spread operator with the objects.

Thank you for visiting my website! If you enjoyed the free courses, please consider supporting my works on Patreon.
Exercise Files
No Attachment Found
No Attachment Found