---
title: "Discussion on \"Let’s understand functions in JavaScript\" | Hashnode"
description: "Discussion on \"Let’s understand functions in JavaScript\". A function is a code block that can perform tasks.  To use a function, we must define it somewhere in the scope where it is being called and executed."
url: "https://hashnode.com/posts/lets-understand-functions-in-javascript/62c4b1c55527bf5d12a26382"
---

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

Discussion

# [Let’s understand functions in JavaScript](https://rahulk.hashnode.dev/lets-understand-functions-in-javascript?utm_source=hashnode&utm_medium=feed)

A function is a code block that can perform tasks. To use a function, we must define it somewhere in the scope where it is being called and executed.

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

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

## Written by

[Rahul Kumar](https://hashnode.com/@rahulk)

@rahulk · Bengaluru, India

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

Senior Frontend Engineer at Tekion

I am a Senior Frontend Engineer at Tekion, experienced with JavaScript and React. Starting to share my learnings in frontend.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
