---
title: "Discussion on \"Pure and Impure functions\" | Hashnode"
description: "Discussion on \"Pure and Impure functions\". What are functions?\nThe function is a piece of code that will help if we are writing the same code repeatedly. \nfunction iAmFunction() {\n    ...some logic here\n}\nWe will call the above function like this as shown below\niAmFunction();\nWhat are pure an..."
url: "https://hashnode.com/posts/pure-and-impure-functions/6286991883966a1653f15809"
---

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

Discussion

# [Pure and Impure functions](https://yaswanthmyneni.hashnode.dev/pure-and-impure-functions?utm_source=hashnode&utm_medium=feed)

What are functions? The function is a piece of code that will help if we are writing the same code repeatedly. function iAmFunction() { ...some logic here } We will call the above function like this as shown below iAmFunction(); What are pure an...

May 19, 2022 · 3 min read · yaswanthmyneni.hashnode.dev  
Read the article

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

## Written by

[Yaswanth Myneni](https://hashnode.com/@yaswanthmyneni)

@yaswanthmyneni · India

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

Computer Science Graduate

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
