---
title: "Discussion on \"Call It Before You Define It: Function Declarations vs Expressions\" | Hashnode"
description: "Discussion on \"Call It Before You Define It: Function Declarations vs Expressions\". Two ways to write a JavaScript function, the one situation where they behave differently, and hoisting in plain language"
url: "https://hashnode.com/posts/function-declaration-vs-expression/6b047c01091fdf839203ee5d"
---

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

Discussion

# [Call It Before You Define It: Function Declarations vs Expressions](https://jaydeepkanzariya.hashnode.dev/function-declaration-vs-expression?utm_source=hashnode&utm_medium=feed)

Two ways to write a JavaScript function, the one situation where they behave differently, and hoisting in plain language

2d ago · 7 min read · jaydeepkanzariya.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#frontend](https://hashnode.com/tag/frontend)

## Written by

[Jaydeep Kanzariya](https://hashnode.com/@jaydeepkanzariya)

@jaydeepkanzariya · India

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
