What is this in a plain function call, in sloppy mode and in strict mode?
function sloppy() {
return this;
}
function strict() {
"use strict";
return this;
}
console.log(sloppy() === window);
console.log(strict());
console.log(window.strict() === window);
The answer
Work out every line it logs, in order. Then check.
Checking your sign-in…