---
title: "Discussion on \"Function Declaration vs. Function Expression\" | Hashnode"
description: "Discussion on \"Function Declaration vs. Function Expression\". Learn the difference between function declaration and function expression in JavaScript. Understand hoisting, syntax, and when to use each with ex."
url: "https://hashnode.com/posts/function-declaration-vs-function-expression/69b45992210c74252f85ef64"
---

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

Discussion

# [Function Declaration vs. Function Expression](https://difference-of-js-function-declaration-vs-function-expression.hashnode.dev/function-declaration-vs-function-expression?utm_source=hashnode&utm_medium=feed)

Learn the difference between function declaration and function expression in JavaScript. Understand hoisting, syntax, and when to use each with ex.

Mar 13 · 9 min read · difference-of-js-function-declaration-vs-function-expression.hashnode.dev  
Read the article

-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#chai-code](https://hashnode.com/tag/chai-code)
-   [#chaicode-webdev-cohort-2026](https://hashnode.com/tag/chaicode-webdev-cohort-2026)
-   [#functions-in-js](https://hashnode.com/tag/functions-in-js)
-   [#function-declaration-in-js](https://hashnode.com/tag/function-declaration-in-js)
-   [#webdevbasics](https://hashnode.com/tag/webdevbasics)

## Written by

[Anil Kambar](https://hashnode.com/@anilkambar02)

@anilkambar02

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

Tech + Learning Journey

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
