---
title: "Discussion on \"Function Declaration vs Function Expression vs IIFE\" | Hashnode"
description: "Discussion on \"Function Declaration vs Function Expression vs IIFE\". Type of functions in JavaScript and when to use them."
url: "https://hashnode.com/posts/function-declaration-vs-function-expression-vs-iife/623d16d7b6813c8a18c210f2"
---

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

Discussion

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

Type of functions in JavaScript and when to use them.

Mar 25, 2022 · 5 min read · moscripts70.hashnode.dev  
Read the article

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

## Written by

[Mahmoud Shabana](https://hashnode.com/@MoScripts70)

@MoScripts70

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

Software Engineer & Advent Learner

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
