当前位置:网站首页>Selection (042) - what is the output of the following code?

Selection (042) - what is the output of the following code?

2022-06-21 14:44:00 Qi Delong

function sayHi() {
  return (() => 0)()
}

typeof sayHi()
  • A: "object"
  • B: "number"
  • C: "function"
  • D: "undefined"

Refer to the answer

原网站

版权声明
本文为[Qi Delong]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202221411022478.html