Which name does this program print?

from Arrow functions
Node 24 intermediate 2 min

Which name does this program print?

JavaScript
function makeReader() {
  return () => this.name;
}

const reader = makeReader.call({ name: 'outer' });
console.log(reader.call({ name: 'inner' }));
Open in playground
Report an error