What will be the output of the following code?
function printName() {
console.log(this.name);
}
const person = {
name: 'John'
};
printName.apply(person);
What will be the output of the following code?
function printName() {
console.log(this.name);
}
const person = {
name: 'John'
};
printName.apply(person);