---
title: "Discussion on \"A step by step guide to functions in JavaScript\" | Hashnode"
description: "Discussion on \"A step by step guide to functions in JavaScript\". Functions are one of the basic concepts in programming. The name itself suggests, it performs a function. A function is a block of code that you can use whenever you need and wherever you required to avoid repeated code blocks. Once a function is wri..."
url: "https://hashnode.com/posts/a-step-by-step-guide-to-functions-in-javascript/5e9d61ae12892a3c760b1eb0"
---

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

Discussion

# [A step by step guide to functions in JavaScript](https://blog.rutik.dev/a-step-by-step-guide-to-functions-in-javascript?utm_source=hashnode&utm_medium=feed)

Functions are one of the basic concepts in programming. The name itself suggests, it performs a function. A function is a block of code that you can use whenever you need and wherever you required to avoid repeated code blocks. Once a function is wri...

Apr 20, 2020 · 8 min read · blog.rutik.dev  
Updated Jul 22, 2022  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#scope](https://hashnode.com/tag/scope)
-   [#functions](https://hashnode.com/tag/functions)
-   [#hoisting](https://hashnode.com/tag/hoisting)

## Written by

[Rutik Wankhade](https://hashnode.com/@rutikwankhade)

@rutikwankhade · India

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

## Responses 2

Markdown supported · ⌘↵ to post

[Sam ijiyemi](https://hashnode.com/@masrad)

[Jul 8, 2020](https://hashnode.com/posts/a-step-by-step-guide-to-functions-in-javascript/5e9d61ae12892a3c760b1eb0/comment/5f063bc0cc12f9189c94c0e5)

Gain Alot

[Rutik Wankhade](https://hashnode.com/@rutikwankhade)

[Jul 9, 2020](https://hashnode.com/posts/a-step-by-step-guide-to-functions-in-javascript/5e9d61ae12892a3c760b1eb0/comment/5f063bc0cc12f9189c94c0e5#reply-5f067056ec52711af78afce1)

Thank you. Glad it helped.

[Yash Sonone](https://hashnode.com/@Dungeon_master21)

[Apr 20, 2020](https://hashnode.com/posts/a-step-by-step-guide-to-functions-in-javascript/5e9d61ae12892a3c760b1eb0/comment/5e9d801512892a3c760b1f61)

awesome brother

[Rutik Wankhade](https://hashnode.com/@rutikwankhade)

[Apr 20, 2020](https://hashnode.com/posts/a-step-by-step-guide-to-functions-in-javascript/5e9d61ae12892a3c760b1eb0/comment/5e9d801512892a3c760b1f61#reply-5e9d978212892a3c760b2121)

Thank you :)
