Skip to content

Commit 16762c4

Browse files
committed
IIFE used in callbakc.js
1 parent b64b42d commit 16762c4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

assignments/callbacks.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,9 @@ function removeDuplicates(array, cb) {
9292
// Do not mutate the original array.
9393
}
9494

95-
console.log(removeDuplicates(items, (res) => res))
95+
console.log(removeDuplicates(items, (res) => res));
96+
97+
// IIFE
98+
(function multiply(a, b) {
99+
console.log(a * b)
100+
})(4, 5)

0 commit comments

Comments
 (0)