---
title: "Discussion on \"Why use default parameters in JavaScript functions?\" | Hashnode"
description: "Discussion on \"Why use default parameters in JavaScript functions?\". JavaScript functions are first-class citizens. Learn how to set default function parameters with examples and explanations."
url: "https://hashnode.com/posts/why-use-javascript-function-default-parameters/653f4aeb09fc18cb3d388eef"
---

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

Discussion

# [Why use default parameters in JavaScript functions?](https://blog.greenroots.info/why-use-javascript-function-default-parameters?utm_source=hashnode&utm_medium=feed)

JavaScript functions are first-class citizens. Learn how to set default function parameters with examples and explanations.

Oct 30, 2023 · 6 min read · blog.greenroots.info  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#codenewbies](https://hashnode.com/tag/codenewbies)
-   [#js](https://hashnode.com/tag/js)

## Written by

[Tapas Adhikary](https://hashnode.com/@atapas)

@atapas · Bangalore

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

Educator @tapaScript | Founder CreoWis & ReactPlay - Writer - YouTuber - Open Source

Co-Founder, @CreoWis | Teacher, @tapaScript | Founder, @ReactPlay | YouTuber | Writer | Human

## Responses 2

Markdown supported · ⌘↵ to post

[Mark Roy](https://hashnode.com/@granolagrocery)

[Nov 21, 2023](https://hashnode.com/posts/why-use-javascript-function-default-parameters/653f4aeb09fc18cb3d388eef/comment/655c589fc8bfa45f6b143c97)

Thoughtful!

[Tapas Adhikary](https://hashnode.com/@atapas)

[Nov 21, 2023](https://hashnode.com/posts/why-use-javascript-function-default-parameters/653f4aeb09fc18cb3d388eef/comment/655c589fc8bfa45f6b143c97#reply-655c5a592a6c065f3be5178e)

Thank you!

[Alisha Bhale](https://hashnode.com/@alishabhale)

[Oct 31, 2023](https://hashnode.com/posts/why-use-javascript-function-default-parameters/653f4aeb09fc18cb3d388eef/comment/654120a0739ea9aa57958ae1)

Insightful!

[Tapas Adhikary](https://hashnode.com/@atapas)

[Nov 21, 2023](https://hashnode.com/posts/why-use-javascript-function-default-parameters/653f4aeb09fc18cb3d388eef/comment/654120a0739ea9aa57958ae1#reply-655c5a502a6c065f3be51789)

Thanks a lot

[江 九](https://hashnode.com/@wzg)

[Oct 31, 2023](https://hashnode.com/posts/why-use-javascript-function-default-parameters/653f4aeb09fc18cb3d388eef/comment/6540b3d8739ea9aa57957c25)

Hello, I want to find a partner to make a video player software, please contact me at jj5372035gmail.c o m
