---
title: "Discussion on \"[JavaScript] Pure Function for Clean Code\" | Hashnode"
description: "Discussion on \"[JavaScript] Pure Function for Clean Code\". in this article, I will be talking about pure vs impure function, and why it is a good practice to always try to use pure function if we can."
url: "https://hashnode.com/posts/javascript-pure-function-for-clean-code/65392e73bbe1963b01c70a27"
---

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

Discussion

# [\[JavaScript\] Pure Function for Clean Code](https://jaylog.hashnode.dev/javascript-pure-function-for-clean-code?utm_source=hashnode&utm_medium=feed)

in this article, I will be talking about pure vs impure function, and why it is a good practice to always try to use pure function if we can.

Oct 25, 2023 · 2 min read · jaylog.hashnode.dev  
Updated Nov 25, 2024  
Read the article

-   [#pure-functions](https://hashnode.com/tag/pure-functions)
-   [#functional-programming](https://hashnode.com/tag/functional-programming)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#functions](https://hashnode.com/tag/functions)

## Written by

[Lim Woojae](https://hashnode.com/@jaylog)

@jaylog · Sydney

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

Computer Science @UNSW

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
