---
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?\". Two ways to write a function and the weird JavaScript magic that separates them"
url: "https://hashnode.com/posts/function-declaration-vs-function-expression-what-s-the-difference/69b69b8ef4eb2f8b0465fd8a"
---

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

Discussion

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

Two ways to write a function and the weird JavaScript magic that separates them

Mar 15 · 4 min read · mounshiafridhossain.hashnode.dev  
Read the article

-   [#web-development](https://hashnode.com/tag/web-development)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#software-development](https://hashnode.com/tag/software-development)
-   [#functions](https://hashnode.com/tag/functions)

## Written by

[MOUNSHI AFRID HOSSAIN](https://hashnode.com/@afrid123)

@afrid123

  
[View profile](https://hashnode.com/@afrid123)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
