Does it an error that professional javascript for web developers tell us how object convert to number?

前端 未结 0 1882
遇见更好的自我
遇见更好的自我 2021-01-17 08:47

Look at below code, what should it output ?

let obj = Object.create(null);
obj.valueOf = function () { console.log(\'hi         


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