JavaScript Quiz Practice
Active Recall Drill Session
← Exit SessionQuestion 1 of 1
easyJavaScript
What does this log?
code
const obj = { name: 'x', getName() { return this.name; } };
const fn = obj.getName;
console.log(fn());Loading compiler resources...
Active Recall Drill Session
const obj = { name: 'x', getName() { return this.name; } };
const fn = obj.getName;
console.log(fn());