---
title: "Discussion on \"JavaScript Function Parameters\" | Hashnode"
description: "Discussion on \"JavaScript Function Parameters\". Understanding ES6 Default Parameters"
url: "https://hashnode.com/posts/javascript-function-parameters/62c24187ccecfb25bbc76dc7"
---

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

Discussion

# [JavaScript Function Parameters](https://joypaces.hashnode.dev/javascript-function-parameters?utm_source=hashnode&utm_medium=feed)

Understanding ES6 Default Parameters

Jul 4, 2022 · 5 min read · joypaces.hashnode.dev  
Updated Sep 13, 2022  
Read the article

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

## Written by

[Joy Opeyemi Oluwafemi](https://hashnode.com/@JoyPaces)

@JoyPaces · Nigeria

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

Web Developer | Technical Writer

I am a Web Developer and a Technical Writer. I love to build projects, talk and write about programming.

## Responses 1

Markdown supported · ⌘↵ to post

[Adebisi Oluwafemi](https://hashnode.com/@Albus01)

[Jul 4, 2022](https://hashnode.com/posts/javascript-function-parameters/62c24187ccecfb25bbc76dc7/comment/62c2f5b5c0401b3dcbcfd9ea)

Nice U could make d function dynamic by taking array as an input and looping through it to add values. That way u take in only 1 argument nd can take tons of values as an array

[Joy Opeyemi Oluwafemi](https://hashnode.com/@JoyPaces)

[Jul 4, 2022](https://hashnode.com/posts/javascript-function-parameters/62c24187ccecfb25bbc76dc7/comment/62c2f5b5c0401b3dcbcfd9ea#reply-62c2fc37c0401b3dcbcfdb67)

You are right Adebisi, rest parameters which is also one of the features of ES6 parameters handles that.
