Which of these top-level declarations become properties of window?
var a = 1;
let b = 2;
const c = 3;
function d() {}
console.log(window.a, window.b, window.c, typeof window.d);
console.log("a" in window, "b" in window);
console.log(b);
The answer
Work out every line it logs, in order. Then check.
Checking your sign-in…