选择篇(041)-下面代码的输出是什么?

const person = { name: 'Lydia' }function sayHi(age) { console.log(`${this.name} is ${age}`) }sayHi.call(person, 21) sayHi.bind(person, 21)

  • A: undefined is 21 Lydia is 21
  • B: function function
  • C: Lydia is 21 Lydia is 21
  • D: Lydia is 21 function
【选择篇(041)-下面代码的输出是什么?】参考答案

    推荐阅读