---
title: "Discussion on \"Function Declaration vs Function Expression: What's the Difference?\" | Hashnode"
description: "Discussion on \"Function Declaration vs Function Expression: What's the Difference?\". Learn the difference between function declarations and function expressions in JavaScript, including hoisting behavior and when to use each."
url: "https://hashnode.com/posts/function-declaration-vs-function-expression-what-s-the-difference/69a2e3f00728161017e28a67"
---

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

Discussion

# [Function Declaration vs Function Expression: What's the Difference?](https://purakhnath-jyani.hashnode.dev/function-declaration-vs-function-expression-what-s-the-difference?utm_source=hashnode&utm_medium=feed)

Learn the difference between function declarations and function expressions in JavaScript, including hoisting behavior and when to use each.

Feb 28 · 8 min read · purakhnath-jyani.hashnode.dev  
Updated Mar 3  
Read the article

-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#chaiaurcode](https://hashnode.com/tag/chaiaurcode)
-   [#hiteshchoudharylco](https://hashnode.com/tag/hiteshchoudharylco)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#jsfunctions](https://hashnode.com/tag/jsfunctions)
-   [#functions-in-js](https://hashnode.com/tag/functions-in-js)
-   [#hoisting](https://hashnode.com/tag/hoisting)
-   [#function-expressions](https://hashnode.com/tag/function-expressions)

## Written by

[Purakhnath Jyani](https://hashnode.com/@purakhnath-jyani)

@purakhnath-jyani

  
[View profile](https://hashnode.com/@purakhnath-jyani)

Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
