How is 'undefined' getting returned here?

后端 未结 0 1499
误落风尘
误落风尘 2020-11-27 19:21
const obj1 = {
  name: \'Steve\',
  speak() {
    function hello() {
      return `My name is ${this.name}`;
    }

    const a = hello();
    return a;
  },
};

con         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题