---
title: "Discussion on \"Function in JavaScript\" | Hashnode"
description: "Discussion on \"Function in JavaScript\". A function is the main building block of the JavaScript program. We can call the function many times without any repetition of code. Functions are designed to perform a particular task.\nAdvantage\n\nCode reusability\nLess code\nEasy to readable\n\nSyntax\n\n..."
url: "https://hashnode.com/posts/function-in-javascript/61272ecd71cb04254f06c773"
---

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

Discussion

# [Function in JavaScript](https://pritamkumar.hashnode.dev/function-in-javascript?utm_source=hashnode&utm_medium=feed)

A function is the main building block of the JavaScript program. We can call the function many times without any repetition of code. Functions are designed to perform a particular task. Advantage Code reusability Less code Easy to readable Syntax ...

Aug 26, 2021 · 1 min read · pritamkumar.hashnode.dev  
Read the article

-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#javascript-framework](https://hashnode.com/tag/javascript-framework)
-   [#newbie](https://hashnode.com/tag/newbie)

## Written by

[Pritam Kumar](https://hashnode.com/@pritamk)

@pritamk · India

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

I learn, Build, and share it with you people.

I am front-end developer.

## Responses 2

Markdown supported · ⌘↵ to post

[Simran Gangwani](https://hashnode.com/@freelancewithsimran)

[Aug 26, 2021](https://hashnode.com/posts/function-in-javascript/61272ecd71cb04254f06c773/comment/6127b01022e1ba252a87f852)

Easy to understand !! Very helpful.

[Pritam Kumar](https://hashnode.com/@pritamk)

[Aug 26, 2021](https://hashnode.com/posts/function-in-javascript/61272ecd71cb04254f06c773/comment/6127b01022e1ba252a87f852#reply-6127b81f71cb04254f06da62)

Thank you

[KUMAR SARVESH](https://hashnode.com/@kr-sarvesh)

[Aug 26, 2021](https://hashnode.com/posts/function-in-javascript/61272ecd71cb04254f06c773/comment/6127354722e1ba252a87e817)

Nice

[Pritam Kumar](https://hashnode.com/@pritamk)

[Aug 26, 2021](https://hashnode.com/posts/function-in-javascript/61272ecd71cb04254f06c773/comment/6127354722e1ba252a87e817#reply-6127b81171cb04254f06da5d)

Thank you
