What does this program print?

from this binding
Node 24 beginner 2 min

What does this program print?

JavaScript
'use strict';

function readName() {
  return this.name;
}

const primary = { name: 'primary', readName };
const bound = readName.bind({ name: 'bound' });

console.log([
  primary.readName(),
  readName.call({ name: 'called' }),
  bound.call({ name: 'ignored' }),
].join(', '));
Open in playground
Report an error