paint-brush
How to Use Rest Parameters in JavaScriptby@micogongob
328 reads
328 reads

How to Use Rest Parameters in JavaScript

by Mico Gongob2mJuly 23rd, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

This short article will cover Rest parameters and how to use them in JavaScript programming. The arguments object is an accessible object that contains the values of the parameters passed to a function. Rest parameters allow you to use an indefinite number of parameters as an array (not an object) Rest parameters are an alternative to the arguments object. The rest parameters' syntax allows you to basically capture the rest of the. parameters. It is not an array so you can’t perform things like.slice() with it.

Company Mentioned

Mention Thumbnail
featured image - How to Use Rest Parameters in JavaScript
Mico Gongob HackerNoon profile picture
Mico Gongob

Mico Gongob

@micogongob

Software Engineer from the Philippines

About @micogongob
LEARN MORE ABOUT @MICOGONGOB'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Mico Gongob HackerNoon profile picture
Mico Gongob@micogongob
Software Engineer from the Philippines

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here
Bit
Moomoo
Coffee-web
Cyberfishnews
Cyberfishnews