Skip to content

Commit ad146f8

Browse files
committed
IIFE
1 parent 39fe9a0 commit ad146f8

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

async.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ async function getAPIData() {
6363
getAPIData();
6464

6565
// IIFE => Instant Code Execution...
66-
(async function () {
67-
console.log("IIFE => Getting Data - 1...");
68-
await api(1);
69-
console.log("IIFE => Getting Data - 2...");
70-
await api(2);
71-
console.log("IIFE => Getting Data - 3...");
72-
await api(3);
73-
console.log("IIFE => Getting Data - 4...");
74-
await api(4);
75-
})();
66+
// (async function () {
67+
// console.log("IIFE => Getting Data - 1...");
68+
// await api(1);
69+
// console.log("IIFE => Getting Data - 2...");
70+
// await api(2);
71+
// console.log("IIFE => Getting Data - 3...");
72+
// await api(3);
73+
// console.log("IIFE => Getting Data - 4...");
74+
// await api(4);
75+
// })();

0 commit comments

Comments
 (0)