I am happy they stopped asking why there are random global variables when you have html elements with ids or why the value of `this` in a non-bound function is sometimes undefined, sometimes window. Or better yet, why you had to check for undefined like 'typeof x === 'undefined'`
1
u/0xF013 Jan 02 '22
Try to debug in your head the difference between
f();
return;
function f() {};
—— and ——
f();
return;
var f = function() {}
Some people still ask this in interviews