Skip to content

Commit 6db0e7e

Browse files
committed
🔖 IIFE
1 parent 8de6348 commit 6db0e7e

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

iife.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//* Immediately Invoked function expression (IIFE)
2+
3+
// => are js function defined as expression that are immedietely invoked and executed as soon as they are defined
4+
5+
//?? => variables declared within an IIFE are not accessable externally
6+
7+
//** */ => IIFE is used for Imedite code execution and the resulting data privacy
8+
9+
//! Example
10+
11+
(function () {
12+
console.log("Hare Krishan");
13+
})();

0 commit comments

Comments
 (0)