---
title: "Comment by Aduonye Iwarimie on \"Understanding function declaration vs expression in JavaScript\" | Hashnode"
description: "Beautiful explanation and straight to the point. Your writing style is good. I learnt that function declaration can be Hoisted. While function expression is goo"
url: "https://hashnode.com/posts/understanding-function-declaration-vs-expression-in-javascript/5f37c8010801bf3f76e5f413/comment/5f37eb330801bf3f76e5f58f"
---

[Discussion](https://hashnode.com/posts/understanding-function-declaration-vs-expression-in-javascript/5f37c8010801bf3f76e5f413)

Comment [Understanding function declaration vs expression in JavaScript](https://hashnode.com/posts/understanding-function-declaration-vs-expression-in-javascript/5f37c8010801bf3f76e5f413)

[Aduonye Iwarimie](https://hashnode.com/@Aduonye)

[Aug 15, 2020](https://hashnode.com/posts/understanding-function-declaration-vs-expression-in-javascript/5f37c8010801bf3f76e5f413/comment/5f37eb330801bf3f76e5f58f)

Beautiful explanation and straight to the point.

Your writing style is good.

I learnt that function declaration can be Hoisted.

While function expression is good for Immediately Invoked Function Expression and using it also prevents polluting the global scope.

Thanks so much for writing about these subtle differences.

[Kisha](https://hashnode.com/@Codewithkisha)

[Aug 15, 2020](https://hashnode.com/posts/understanding-function-declaration-vs-expression-in-javascript/5f37c8010801bf3f76e5f413/comment/5f37eb330801bf3f76e5f58f#reply-5f37eddac4d5973f55c90835)

Thank you so much...I'm glad you learnt something
