had a question about functions. Suppose I have a function statement as shown below:
function someFunction() {
}
This gets assigned to global 'window' object as shown below:
someFunction: ƒ someFunction()
But if there is an IIFE as shown below, how is it attached to global object?
(function() {
console.log('I am an IIFE');
}());
I created such function, then tried seacrhing 'window' object but didn't find anything.