IIFE: Immediately Invoked Function Expression

preview_player
Показать описание
IIFE stands for Immediately Invoked Function Expression. When we create a normal function, it does not get executed on its own. We have call the function by its name to execute it.

The IIFE is a function which is defined as a function expression and executed immediately after creation.

In this lecture you will learn What is IIFE and how to create it, its use and advantage.
Рекомендации по теме
Комментарии
Автор

Why does the 'return 10' statement not work with the IIFE's?

Martin