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

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

2022-06-24 18:03:00 Qi Delong

const obj = { 1: "a", 2: "b", 3: "c" };
const set = new Set([1, 2, 3, 4, 5]);

obj.hasOwnProperty("1");
obj.hasOwnProperty(1);
set.has("1");
set.has(1);
A: false true false true
B: false true true true
C: true true false true
D: true true true true

Refer to the answer

原网站

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