0
Can forEach method of an array be considered as an example of immediately invoked function expression (IIFE)
2 Respostas
+ 1
Well inside forEach you add function what is run behind the hood itself, so it just act like IIFE.
When we tolk about IIFE we mean functions defined by developer what run right after thay are declared.
Fuction inside forEach are named callback