javascript q1 | variable scoping | IIFE | Assignment Operator #shorts



#shorts
I have explained 3 important concepts used in below question:

(function () {
var a = b = 3;
})();

console.log(typeof a === “undefined”);
console.log(typeof b === “undefined”);