---
title: "Discussion on \"what is a pure function in javascript?\" | Hashnode"
description: "Discussion on \"what is a pure function in javascript?\". a pure function is a JavaScript function that, given the same input, will always return the same output and have no side effects. This means that the function does not modify any external state or data, and its output is solely determined by its inpu..."
url: "https://hashnode.com/posts/what-is-a-pure-function-in-javascript/63c6d389f5809a65e6e0a591"
---

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

Discussion

# [what is a pure function in javascript?](https://navneshblog.io/what-is-a-pure-function-in-javascript?utm_source=hashnode&utm_medium=feed)

a pure function is a JavaScript function that, given the same input, will always return the same output and have no side effects. This means that the function does not modify any external state or data, and its output is solely determined by its inpu...

Jan 18, 2023 · 1 min read · navneshblog.io  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#pure-functions](https://hashnode.com/tag/pure-functions)
-   [#learning](https://hashnode.com/tag/learning)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#developer](https://hashnode.com/tag/developer)

## Written by

[NAVNESH RANJAN](https://hashnode.com/@Navnesh)

@Navnesh · Bangalore

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
