---
title: "Discussion on \"Different ways to Create functions in Javascript\" | Hashnode"
description: "Discussion on \"Different ways to Create functions in Javascript\". Today, we will learn different ways to create functions in Javascript.\nBefore starting, a reminder about what is a function:\n\nA Function is a block of statements that is designed to perform a particular task.\n\n//defining a function\nfunction test(){\n ..."
url: "https://hashnode.com/posts/different-ways-to-create-functions-in-javascript/60dc3fa795305075b93375f2"
---

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

Discussion

# [Different ways to Create functions in Javascript](https://negi.hashnode.dev/different-ways-to-create-functions-in-javascript?utm_source=hashnode&utm_medium=feed)

Today, we will learn different ways to create functions in Javascript. Before starting, a reminder about what is a function: A Function is a block of statements that is designed to perform a particular task. //defining a function function test(){ ...

Jun 30, 2021 · 3 min read · negi.hashnode.dev  
Read the article

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

## Written by

[Suraj Negi](https://hashnode.com/@ersurajnegi)

@ersurajnegi

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

A Programmer, busy debugging loop of LIFE!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
