---
title: "Discussion on \"Default Params in JavaScript\" | Hashnode"
description: "Discussion on \"Default Params in JavaScript\". Default Params (Parameter for short) are arguments or parameters that have been assigned a default value, either to avoid NaN, null or undefined.\nExample, We would create a rollDie function that would by default accept a num;\nEach time the number is ..."
url: "https://hashnode.com/posts/default-params-in-javascript/600f443b9d3cb25c41e0a260"
---

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

Discussion

# [Default Params in JavaScript](https://webdevnote.hashnode.dev/default-params-in-javascript?utm_source=hashnode&utm_medium=feed)

Default Params (Parameter for short) are arguments or parameters that have been assigned a default value, either to avoid NaN, null or undefined. Example, We would create a rollDie function that would by default accept a num; Each time the number is ...

Jan 25, 2021 · 5 min read · webdevnote.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#codenewbies](https://hashnode.com/tag/codenewbies)
-   [#code](https://hashnode.com/tag/code)
-   [#best-practices](https://hashnode.com/tag/best-practices)

## Written by

[Victor Adeshile](https://hashnode.com/@davik4life)

@davik4life

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

I Code

I am CEO (Webtek-Masters Innovation) and I love everything tech! I am a Father of one Angel, a Husband, and I'm always in a student mode. Learning something new everyday excites and inspires me.

## Responses 1

Markdown supported · ⌘↵ to post

[Bhargav Ponnapalli](https://hashnode.com/@codewithbhargav)

[Jan 26, 2021](https://hashnode.com/posts/default-params-in-javascript/600f443b9d3cb25c41e0a260/comment/600fd32a9d3cb25c41e0acce)

Good one [Victor Adeshile](https://hashnode.com/@davik4life)!

[Victor Adeshile](https://hashnode.com/@davik4life)

[Jan 26, 2021](https://hashnode.com/posts/default-params-in-javascript/600f443b9d3cb25c41e0a260/comment/600fd32a9d3cb25c41e0acce#reply-600fd39fdf57175c6a9fbbd4)

Thanks [Bhargav Ponnapalli](https://hashnode.com/@imbhargav5).
