var a;
console.log(a);
+function() {
alert("Hello from IIFE!");
}();
console.log(a);
a = 'Hi';
Output in console: undefined ALERT POPUP Hi
Question: Should both instances of variable 'a' display undefined or should they both show 'Hi?
Exploring how JavaScript functions in various scenarios