---
title: "Discussion on \"JavaScript Functions\" | Hashnode"
description: "Discussion on \"JavaScript Functions\". What is a function?\nA function is a set of statements that performs a task or calculates a value. [MDN]\nDeclaring a function\nfunction hello(){\n    console.log(\"Hello!\");\n}\n\nwe use the \"function\" keyword to declare a function followed by the function ..."
url: "https://hashnode.com/posts/javascript-functions/63aea44ea8da49dbb23f71ed"
---

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

Discussion

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

What is a function? A function is a set of statements that performs a task or calculates a value. \[MDN\] Declaring a function function hello(){ console.log("Hello!"); } we use the "function" keyword to declare a function followed by the function ...

Dec 30, 2022 · 4 min read · shwetankblogs.hashnode.dev  
Read the article

-   [#iwritecode](https://hashnode.com/tag/iwritecode)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#interview](https://hashnode.com/tag/interview)

## Written by

[Shwetank Singh](https://hashnode.com/@sgtBee)

@sgtBee

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
