Learn JavaScript Rest Parameter in 1 minute

Written by Shan Shah
Updated on July 20, 2022
1 min read
javascript rest parameter or operator

🚀 It bundles the passing arguments into an array.

😮 It allows calling a function with any number of arguments.

🤩 It helps where you are not sure about the number of arguments.

😲 It appears as an ellipsis (...) in the function definition.

😱 It is different from spread operator

Quick Note:

🤯 It must be the last formal parameter.

😎 You can also call it a rest operator.

Example:

javascript rest parameter or operator

Video Tutorial:

Share with others:

Project Based Tutorials
Tips & Tricks
Modern Technologies
Real-World Challenges
Creative Content
Build-Apps from Scratch
Web Development Content
17+ Videos Published
Coder Champ © 2023 - 
Privacy Policy
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram