Modern JavaScript
About Lesson

In this JavaScript lesson we are going to talk about JavaScript REST Operator, so It is used to handle function parameters, you can use three dot (…) for this. Rest operator signify that parameter is a placeholder for any number of arguments. and rest operator is used for handling function parameters. the best thing is this that the rest parameter is of Array type.



For example we have a function, in this function we have added a parameter, now when we call our function we can just add one parameter and it will print just one parameter.



Even tough you can use arguments for print different parameters.




But in JavaScript ES6 we have another operator to do this, you can use REST Operator for performing of these kind functionalities.

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