---
title: "Discussion on \"A simple intro to pure functions in JavaScript.\" | Hashnode"
description: "Discussion on \"A simple intro to pure functions in JavaScript.\". A function in JavaScript is similar to a procedure—a set of statements that performs a task or calculates a value, but for a procedure to qualify as a function, it should take some input and return an output where there is some obvious relationship b..."
url: "https://hashnode.com/posts/a-simple-intro-to-pure-functions-in-javascript/62c16d50ccecfb25bbc752b7"
---

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

Discussion

# [A simple intro to pure functions in JavaScript.](https://yogeshpendse.hashnode.dev/a-simple-intro-to-pure-functions-in-javascript?utm_source=hashnode&utm_medium=feed)

A function in JavaScript is similar to a procedure—a set of statements that performs a task or calculates a value, but for a procedure to qualify as a function, it should take some input and return an output where there is some obvious relationship b...

Jul 3, 2022 · 3 min read · yogeshpendse.hashnode.dev  
Read the article

-   [#functions](https://hashnode.com/tag/functions)
-   [#js-functions](https://hashnode.com/tag/js-functions)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#pure-functions](https://hashnode.com/tag/pure-functions)

## Written by

[Yogesh Pendse](https://hashnode.com/@yogeshpendse)

@yogeshpendse

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

Trying to build something impactful

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
