以下为ChatGPT自动生成的解答,正确与否请自行判断。 也许你也可以从大家的发帖中找到想要的答案!
BFE.devAI解答 - JavaScript 小测验
25. zero
输出结果为:
Infinity
-Infinity
NaN
true
false
true
false
NaN
NaN
true
true
-Infinity
Infinity
TypeError: Cannot mix BigInt and other types, use explicit conversions to ensure correct ordering
最后一行会抛出类型错误,因为在BigInt上使用除法运算符不被允许。