---
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?\". JavaScript has two main ways to create a function. They look similar, but behave differently in one important way. Once you know the difference, you'll know exactly which one to reach for.\nWhat is a f"
url: "https://hashnode.com/posts/function-declaration-vs-function-expression-what-s-the-difference/69b692b1f4eb2f8b045c5408"
---

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

Discussion

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

JavaScript has two main ways to create a function. They look similar, but behave differently in one important way. Once you know the difference, you'll know exactly which one to reach for. What is a f

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

-   [#chaiaurcode](https://hashnode.com/tag/chaiaurcode)
-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#chaicohort](https://hashnode.com/tag/chaicohort)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#function](https://hashnode.com/tag/function)
-   [#function-declaration](https://hashnode.com/tag/function-declaration)
-   [#function-expressions](https://hashnode.com/tag/function-expressions)

## Written by

[Jemin Desai](https://hashnode.com/@JEMIN7)

@JEMIN7

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
