What do these two setTimeout callbacks log for this.label?
var label = "window";
const timer = {
label: "timer",
start() {
setTimeout(function () {
console.log("function:", this.label);
}, 0);
setTimeout(() => {
console.log("arrow:", this.label);
}, 0);
},
};
timer.start();
The answer
Work out every line it logs, in order. Then check.
Checking your sign-in…