---
title: "Discussion on \"Differences between arrow function and regular function in JavaScript\" | Hashnode"
description: "Discussion on \"Differences between arrow function and regular function in JavaScript\". Differences between arrow function and regular function in JavaScript."
url: "https://hashnode.com/posts/differences-between-arrow-function-and-regular-function-in-javascript/61248bf6663d427e19ff93db"
---

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

Discussion

# [Differences between arrow function and regular function in JavaScript](https://mohit-codes.hashnode.dev/differences-between-arrow-function-and-regular-function-in-javascript?utm_source=hashnode&utm_medium=feed)

Differences between arrow function and regular function in JavaScript.

Aug 24, 2021 · 3 min read · mohit-codes.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#array-methods](https://hashnode.com/tag/array-methods)
-   [#functional-programming](https://hashnode.com/tag/functional-programming)
-   [#functions](https://hashnode.com/tag/functions)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)

## Written by

[Mohit Kushwaha](https://hashnode.com/@mohit-codes)

@mohit-codes · India

  
[View profile](https://hashnode.com/@mohit-codes)

Software Engineer

## Responses 6

Markdown supported · ⌘↵ to post

[Salman Shaikh](https://hashnode.com/@Codersalman)

[Feb 22, 2023](https://hashnode.com/posts/differences-between-arrow-function-and-regular-function-in-javascript/61248bf6663d427e19ff93db/comment/63f5d16ff338bec1cf2df964)

Nice article Mohit 👏, Keep it up

[Mohit Kushwaha](https://hashnode.com/@mohit-codes)

[Mar 4, 2023](https://hashnode.com/posts/differences-between-arrow-function-and-regular-function-in-javascript/61248bf6663d427e19ff93db/comment/63f5d16ff338bec1cf2df964#reply-6403a6c6a50f11a2517c25e6)

Thanks, Glad you liked it!

[Abdo Achhoubi - Astro](https://hashnode.com/@AbdoAchhoubi)

[Sep 24, 2022](https://hashnode.com/posts/differences-between-arrow-function-and-regular-function-in-javascript/61248bf6663d427e19ff93db/comment/632eea983a049a0d9db75776)

Nice explanations

[Mohit Kushwaha](https://hashnode.com/@mohit-codes)

[Oct 10, 2022](https://hashnode.com/posts/differences-between-arrow-function-and-regular-function-in-javascript/61248bf6663d427e19ff93db/comment/632eea983a049a0d9db75776#reply-63444b4af943840715bd2200)

Glad you liked it!

[Joseph Tsegen](https://hashnode.com/@xavier577)

[Aug 24, 2021](https://hashnode.com/posts/differences-between-arrow-function-and-regular-function-in-javascript/61248bf6663d427e19ff93db/comment/61250385663d427e19ffa6f9)

Very easy to comprehend, great one 🙌🏿

[Mohit Kushwaha](https://hashnode.com/@mohit-codes)

[Aug 24, 2021](https://hashnode.com/posts/differences-between-arrow-function-and-regular-function-in-javascript/61248bf6663d427e19ff93db/comment/61250385663d427e19ffa6f9#reply-6125335b663d427e19ffad29)

Glad to hear that 🙂

[Vijay Thirugnanam](https://hashnode.com/@vijayst)

[Aug 24, 2021](https://hashnode.com/posts/differences-between-arrow-function-and-regular-function-in-javascript/61248bf6663d427e19ff93db/comment/6124d0a2b115357df05f3b1c)

I am always scared of "this" in a regular function.

[Mohit Kushwaha](https://hashnode.com/@mohit-codes)

[Sep 7, 2021](https://hashnode.com/posts/differences-between-arrow-function-and-regular-function-in-javascript/61248bf6663d427e19ff93db/comment/6124d0a2b115357df05f3b1c#reply-61375a5283248670799be808)

[Vijay Thirugnanam](https://hashnode.com/@vijayst) sir check out latest [post](https://mohit-codes.hashnode.dev/the-mystery-of-this-in-javascript) on "this".

[Jiao](https://hashnode.com/@Jiao)

[Aug 24, 2021](https://hashnode.com/posts/differences-between-arrow-function-and-regular-function-in-javascript/61248bf6663d427e19ff93db/comment/6124c01b663d427e19ff9cbe)

Hey [Mohit Kushwaha](https://hashnode.com/@mohit-codes), Nice article! Only one small thing, there is a misspelling in the second code example:

```
// Function expression
cosnt double = function(x){
    return x*2;
}
```

cosnt --> const.

[Mohit Kushwaha](https://hashnode.com/@mohit-codes)

[Aug 24, 2021](https://hashnode.com/posts/differences-between-arrow-function-and-regular-function-in-javascript/61248bf6663d427e19ff93db/comment/6124c01b663d427e19ff9cbe#reply-6124c097b115357df05f37ab)

Thanks [Jiao](https://hashnode.com/@Jiao) for pointing it out

[Chirag Dev](https://hashnode.com/@ChiragCodes)

[Aug 24, 2021](https://hashnode.com/posts/differences-between-arrow-function-and-regular-function-in-javascript/61248bf6663d427e19ff93db/comment/612499cbb115357df05f3242)

Nice article Mohit. Loved it.

[Mohit Kushwaha](https://hashnode.com/@mohit-codes)

[Aug 24, 2021](https://hashnode.com/posts/differences-between-arrow-function-and-regular-function-in-javascript/61248bf6663d427e19ff93db/comment/612499cbb115357df05f3242#reply-6124c027b115357df05f3796)

Glad you liked it Chirag
