---
title: "Saurabh Kamboj (@saurabhkamboj) | Hashnode"
description: "Software Engineer. Read the latest articles by Saurabh Kamboj on Hashnode."
url: "https://hashnode.com/@saurabhkamboj"
---

@saurabhkamboj

# Saurabh Kamboj

@saurabhkamboj · India · Joined April 2021

Software Engineer

[Website](https://saurabhkamboj.vercel.app/)

## Comments

[I'm really glad you liked the article. So to answer your question, as long as your function produces the same output even without an input value and that too without accessing anything from the outside view , it is a pure function. const num =7 ; const sentence = () => {return 'It is a good day' ; } Here sentence function doesn't have an input value, but it'll produce the same result always. Hence a pure function.](https://hashnode.com/posts/functional-programming-with-javascript/607486a085f3a21e3926c0b4/comment/60772ec9a3407a32d7042148#reply-60781db54155da32fc83c139)

Reply · Article · Apr 15, 2021 · [Functional Programming with JavaScript](https://hashnode.com/posts/functional-programming-with-javascript/607486a085f3a21e3926c0b4)
