Junior — Senior
Preserving method context when calling through a separate variable
livecode
Task condition
You need to fix the code so that the value 1 is printed to the console.
const data = {
value: 1,
display() {
console.log(this.value)
}
}
const fn = data.display;
fn();