---
title: "Discussion on \"Functions in JavaScript\" | Hashnode"
description: "Discussion on \"Functions in JavaScript\". What is a function?\nA function is a reusable piece of code that takes some input, performs some task and returns a value. A function stores a piece of code that we want to use repeatedly.\nTo use a function, we call that function by its name.\n// Defin..."
url: "https://hashnode.com/posts/functions-in-javascript/63fa42e01ad4558e62eb368e"
---

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

Discussion

# [Functions in JavaScript](https://bobby-sadhwani.hashnode.dev/functions-in-javascript?utm_source=hashnode&utm_medium=feed)

What is a function? A function is a reusable piece of code that takes some input, performs some task and returns a value. A function stores a piece of code that we want to use repeatedly. To use a function, we call that function by its name. // Defin...

Feb 25, 2023 · 4 min read · bobby-sadhwani.hashnode.dev  
Updated Aug 29, 2023  
Read the article

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

## Written by

[Bobby Sadhwani](https://hashnode.com/@bobby-sadhwani)

@bobby-sadhwani · Bhopal, India

  
[View profile](https://hashnode.com/@bobby-sadhwani)

Frontend Engineer

I'm a front-end developer focused on crafting clean and user friendly experiences.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
