---
title: "Discussion on \"How to use Default Parameters in JavaScript\" | Hashnode"
description: "Discussion on \"How to use Default Parameters in JavaScript\". Default parameters is a feature in JavaScript that allow function parameters to be initialized with a default value if no argument is given for that parameter, or if a value of undefined is assigned to that function parameter.\nDefault parameters are ..."
url: "https://hashnode.com/posts/how-to-use-default-parameters-in-javascript/60b182c29b1e2e1dccbcdaae"
---

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

Discussion

# [How to use Default Parameters in JavaScript](https://ayobami.hashnode.dev/how-to-use-default-parameters-in-javascript?utm_source=hashnode&utm_medium=feed)

Default parameters is a feature in JavaScript that allow function parameters to be initialized with a default value if no argument is given for that parameter, or if a value of undefined is assigned to that function parameter. Default parameters are ...

May 28, 2021 · 3 min read · ayobami.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#es6](https://hashnode.com/tag/es6)

## Written by

[Tunwase Ayobami](https://hashnode.com/@ayobami)

@ayobami · Lagos, Nigeria

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

Aspiring fullstack frontend developer using MERN. Technical writer.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
