Learn JavaScript Rest Parameter in 1 minute | Coder Champ

preview_player
Показать описание
JavaScript Rest Parameter allows us to pass multiple arguments to a function without using an array of objects.

Rest parameters are created by placing three dots, or ellipsis, before the parameter.

The three dots tell JavaScript that we want to accept any number and type of additional arguments and that we want to store those arguments in an array.

Rest parameters have a lot of use cases since they allow us to pass in more arguments than the function is designed to accept.

With a rest parameter, you can specify an indefinite number of arguments when calling a function.
This is especially useful when you don't know how many arguments will be passed to the function ahead of time.

You can look into the blog post here along with an example code:

Don't forget to subscribe to Coder Champ for more quick videos.
Рекомендации по теме
Комментарии
Автор

You can look into the blog post here along with an example code:

CoderChamp
Автор

thx u my brother. coz of u, i can update php lastest version⭐⭐⭐⭐⭐

haiihad
Автор

Bro I see your blogs that is ❤️Awesome ❤️ and easy to understand, Keep upload videos like your blogs👍

Ajay-kzzw