What does var a = b = 5 inside a function leave behind in the global scope?
function init() {
var a = b = 5;
}
init();
console.log(typeof a);
console.log(typeof b);
console.log(window.b);
The answer
Work out every line it logs, in order. Then check.
Checking your sign-in…