IIFE in JavaScript | Why it so Special?

preview_player
Показать описание
🍒 Related Videos

💖 Channel Support

💌 For Business Inquiries

🚶‍♂️ Follow us

---
IIFE in JavaScript, Why it is so Special

IIFE or Immediately Invoked Function Expressions in JavaScript,. It's a special type of function expression. A function is invoked as soon as it is defined. By doing so, we've got some performance advantages.

Basically, a function, most often an anonymous function, is used in an IIFE. Since the components could be variables or nested functions inside IIFE, they would be local to the expression. Can't be accessed, so immediately after the expression, the components inside the expression will be discarded. Which makes the expression so special.

Discussion @ times
--------------------------------
00:00 - Introduction.
00:34 - What is IIFE?
05:55 - Advantages of Using IIFE
06:13 - IIFE Prevents Polluting Global Scope
12:59 - Prevents Memory Leakage.
16:48 - IIFE Create Modules in JavaScript.
19:16 - Minify the Source Code.
20:40 - Reduce Scope Lookups.
24:15 - Over Write Existing Function with IIFE.

#JavaScript #JavaScriptBeginnersTutorial #CodAffection
Рекомендации по теме
Комментарии
Автор

this course of your is just very helpful.
👍👍

ashish_prajapati_tr
Автор

Great and quality video about IIFE....

Sohailkhan
welcome to shbcf.ru