单选题

下面代码的输出是: const arr = ...

发布于 2022-03-02 16:49:57

下面代码的输出是:
const arr = []
const testObj = {}
console.log(arr === "")
console.log(arr == "")
arr.toString = () => 1
console.log(arr === 1)
console.log(arr == 1)
arr.valueOf = () => 2
console.log(arr == 2)
arr.valueOf = () => testObj
console.log(arr == testObj)


登录后免费查看答案
关注者
0
被浏览
18
知识点
面圈网VIP题库

面圈网VIP题库全新上线,海量真题题库资源。 90大类考试,超10万份考试真题开放下载啦

去下载看看