---
title: "Discussion on \"Function Expression vs  Declaration vs IIFE\" | Hashnode"
description: "Discussion on \"Function Expression vs  Declaration vs IIFE\". Introduction\nFunctions in JavaScript can be created in many different ways. But, these methods have different meanings and work differently. In this blog post, we'll attempt to understand the different ways functions can be defined include pros and c..."
url: "https://hashnode.com/posts/function-expression-vs-declaration-vs-iife/5f5174461ed5446c783c25ea"
---

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

Discussion

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

Introduction Functions in JavaScript can be created in many different ways. But, these methods have different meanings and work differently. In this blog post, we'll attempt to understand the different ways functions can be defined include pros and c...

Sep 3, 2020 · 4 min read · iroegbu.com  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#functions](https://hashnode.com/tag/functions)
-   [#optimization](https://hashnode.com/tag/optimization)

## Written by

[Iroegbu Iroegbu](https://hashnode.com/@iroegbu)

@iroegbu · Lagos, Nigeria

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

Software developer, Computer Scientist.

I'm a software developer and computer scientist who loves building things.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
