What does this log when you call a method through a variable?
var label = "global";
const menu = {
label: "menu",
getLabel() {
return this.label;
},
};
const getLabel = menu.getLabel;
console.log(menu.getLabel());
console.log(getLabel());
The answer
Work out every line it logs, in order. Then check.
Checking your sign-in…