---
title: "Comment by Jiao on \"Differences between arrow function and regular function in JavaScript\" | Hashnode"
description: "Hey Mohit Kushwaha , Nice article! Only one small thing, there is a misspelling in the second code example: // Function expression cosnt double = function ( x )"
url: "https://hashnode.com/posts/differences-between-arrow-function-and-regular-function-in-javascript/61248bf6663d427e19ff93db/comment/6124c01b663d427e19ff9cbe"
---

[Discussion](https://hashnode.com/posts/differences-between-arrow-function-and-regular-function-in-javascript/61248bf6663d427e19ff93db)

Comment [Differences between arrow function and regular function in JavaScript](https://hashnode.com/posts/differences-between-arrow-function-and-regular-function-in-javascript/61248bf6663d427e19ff93db)

[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
