---
title: "Discussion on \"Pure functions in JavaScript\" | Hashnode"
description: "Discussion on \"Pure functions in JavaScript\". Pure functions are a part of functional programming paradigm\nWhy pure functions?\n\nClean code\nEasy to test and debug\nDecoupled and independent from the program so that we could use this as a utility function\n\nRules:\n\nA pure function should always have..."
url: "https://hashnode.com/posts/pure-functions-in-javascript/62a1d9fba4c962768fc34c9b"
---

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

Discussion

# [Pure functions in JavaScript](https://bksh.hashnode.dev/pure-functions-in-javascript?utm_source=hashnode&utm_medium=feed)

Pure functions are a part of functional programming paradigm Why pure functions? Clean code Easy to test and debug Decoupled and independent from the program so that we could use this as a utility function Rules: A pure function should always have...

Jun 9, 2022 · 2 min read · bksh.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#functional-programming](https://hashnode.com/tag/functional-programming)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#mathematics](https://hashnode.com/tag/mathematics)

## Written by

[Bipul Sharma](https://hashnode.com/@bksh)

@bksh

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
