---
title: "Discussion on \"Define functions in JavaScript\" | Hashnode"
description: "Discussion on \"Define functions in JavaScript\". The function is a set of statements or blocks of code to perform a specific task and return a value. They are reusable and make your program modular and efficient.\nBelow are a few ways to define a function in JS.\nDefining a Function\n1. Function State..."
url: "https://hashnode.com/posts/define-functions-in-javascript/5e9d6a090135fc41766282b5"
---

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

Discussion

# [Define functions in JavaScript](https://learn-n-share.hashnode.dev/define-functions-in-javascript?utm_source=hashnode&utm_medium=feed)

The function is a set of statements or blocks of code to perform a specific task and return a value. They are reusable and make your program modular and efficient. Below are a few ways to define a function in JS. Defining a Function 1. Function State...

Apr 20, 2020 · learn-n-share.hashnode.dev  
Read the article

## Written by

[Software Engineer](https://hashnode.com/@learnNdShare)

@learnNdShare · Bengaluru, India

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

Someone who loves reading and writing

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
