---
title: "Discussion on \"Different ways of writing functions in JavaScript\" | Hashnode"
description: "Discussion on \"Different ways of writing functions in JavaScript\". Js Basics"
url: "https://hashnode.com/posts/different-ways-of-writing-functions-in-javascript/64c8ea74c2a93e868eaab501"
---

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

Discussion

# [Different ways of writing functions in JavaScript](https://subham-cc99.hashnode.dev/different-ways-of-writing-functions-in-javascript?utm_source=hashnode&utm_medium=feed)

Js Basics

Aug 1, 2023 · 2 min read · subham-cc99.hashnode.dev  
Read the article

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

## Written by

[Subham Singh](https://hashnode.com/@subham-cc99)

@subham-cc99 · Bengaluru, India

  
[View profile](https://hashnode.com/@subham-cc99)

Software Engineer

Hi, I'm Subham, a software engineer, and tech enthusiast. Welcome to my developer blog. I will be talking about the fascinating world of programming and all things tech. Let's learn and grow together in this ever-evolving landscape!

## Responses 2

Markdown supported · ⌘↵ to post

[Subham Pandey](https://hashnode.com/@subh007)

[Aug 15, 2023](https://hashnode.com/posts/different-ways-of-writing-functions-in-javascript/64c8ea74c2a93e868eaab501/comment/64dba11e4429385b92801c83)

well explained!!

[Dipendra Kumar shah](https://hashnode.com/@invincibleRD)

[Aug 1, 2023](https://hashnode.com/posts/different-ways-of-writing-functions-in-javascript/64c8ea74c2a93e868eaab501/comment/64c91e4bfb80f1a4e44f3442)

Generator function could be of great use if we start building logics with generator functions.

[Subham Singh](https://hashnode.com/@subham-cc99)

[Aug 2, 2023](https://hashnode.com/posts/different-ways-of-writing-functions-in-javascript/64c8ea74c2a93e868eaab501/comment/64c91e4bfb80f1a4e44f3442#reply-64c9ee25e5834aa8ddb7134a)

Indeed, like every other function, it holds its own significance and purpose of usage.
