---
title: "Comment by Dipendra Kumar shah on \"Different ways of writing functions in JavaScript\" | Hashnode"
description: "Generator function could be of great use if we start building logics with generator functions."
url: "https://hashnode.com/posts/different-ways-of-writing-functions-in-javascript/64c8ea74c2a93e868eaab501/comment/64c91e4bfb80f1a4e44f3442"
---

[Discussion](https://hashnode.com/posts/different-ways-of-writing-functions-in-javascript/64c8ea74c2a93e868eaab501)

Comment [Different ways of writing functions in JavaScript](https://hashnode.com/posts/different-ways-of-writing-functions-in-javascript/64c8ea74c2a93e868eaab501)

[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.
