---
title: "Discussion on \"rest parameter in javascript\" | Hashnode"
description: "Discussion on \"rest parameter in javascript\". The rest parameter is introduced in ES6. It allows a function to accept an indefinite number of arguments as an array that is we can call a function with as many arguments as we want and the rest parameter will gather all these arguments into an arra..."
url: "https://hashnode.com/posts/rest-parameter-in-javascript/6211287ce2db563535e35e8a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [rest parameter in javascript](https://rajatgupta.net/rest-parameter-in-javascript?utm_source=hashnode&utm_medium=feed)

The rest parameter is introduced in ES6. It allows a function to accept an indefinite number of arguments as an array that is we can call a function with as many arguments as we want and the rest parameter will gather all these arguments into an arra...

Feb 19, 2022 · 2 min read · rajatgupta.net  
Updated Jun 17, 2023  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#beginners](https://hashnode.com/tag/beginners)

## Written by

[Rajat Gupta](https://hashnode.com/@therajatg)

@therajatg · Rajasthan, India

  
[View profile](https://hashnode.com/@therajatg)

I write about CSS, JavaScript, React and everything in between.

Hi, I am rajat. I write about react, javascript or css 4 times a week. One more thing: I would love to work as a frontend engineer (focused on ReactJS). If you have any such role, ping me at dguptarajat@gmail.com.

## Responses 1

Markdown supported · ⌘↵ to post

[Dheeraj Purohit](https://hashnode.com/@purohitdheeraj)

[Feb 21, 2022](https://hashnode.com/posts/rest-parameter-in-javascript/6211287ce2db563535e35e8a/comment/6212e52be2db563535e3aba5)

Hey Great Article Rajat my ...rest topic got revised keep learning keep sharing🙌

[Rajat Gupta](https://hashnode.com/@therajatg)

[Feb 21, 2022](https://hashnode.com/posts/rest-parameter-in-javascript/6211287ce2db563535e35e8a/comment/6212e52be2db563535e3aba5#reply-62132146e2db563535e3b06e)

Thanks, Dheeraj.
