---
title: "Discussion on \"A creative way to have required arguments in JavaScript\" | Hashnode"
description: "Discussion on \"A creative way to have required arguments in JavaScript\". Have you ever received an error because you forgot to pass an argument to the function? This is a common situation.\nUnfortunately, JavaScript does not require passing parameters that have been declared in the function, and this results in a possible ..."
url: "https://hashnode.com/posts/a-creative-way-to-have-required-arguments-in-javascript/62367027bef4c71aa6f10e97"
---

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

Discussion

# [A creative way to have required arguments in JavaScript](https://blog.gabrielrufino.com/a-creative-way-to-have-required-arguments-in-javascript?utm_source=hashnode&utm_medium=feed)

Have you ever received an error because you forgot to pass an argument to the function? This is a common situation. Unfortunately, JavaScript does not require passing parameters that have been declared in the function, and this results in a possible ...

Mar 25, 2021 · 3 min read · blog.gabrielrufino.com  
Read the article

## Written by

[Gabriel Rufino](https://hashnode.com/@gabrielrufino)

@gabrielrufino · Pernambuco, BR

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

Software Developer | Back-end

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
