1 / 20

What will be the output of the following code: const person = { name: 'Lydia' }; function sayHi(age) { return `${this.name} is ${age}`; } console.log(sayHi.call(person, 21)); console.log(sayHi.bind(person, 21));?

?

Lydia is 21 function

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy