⚡JavaScriptadvanced
Question 1 of 10
const obj = {
a: 1,
b: function() {
return () => this.a;
}
};
const fn = obj.b();
console.log(fn())What's the output?
Question 1 of 10
const obj = {
a: 1,
b: function() {
return () => this.a;
}
};
const fn = obj.b();
console.log(fn())What's the output?