JavaScript for Beginners #27 Immediately Invoked Function Expressions (IIFE)

preview_player
Показать описание
Here, we will learn about the immediately invoked function expression or IIFE for short. This is a common way to address variable privacy if using the old school var to declare a variable.

0:00 What is an immediately invoked function expression
0:39 Expressions in JavaScript
1:24 Creating an IIFE
4:05 How to call an IIFE
4:23 Showing variable privacy
5:58 Creating a block for variable privacy with let or const
7:48 Showing problems with var
9:08 Passing arguments into an IIFE

JavaScript Playlist:

MDN IIFE:

NodeJS:

VS Code:
Рекомендации по теме
Комментарии
Автор

I am really enjoying these tutorials so far. Thank you for your efforts.

laponiec
welcome to shbcf.ru