250 Câu hỏi trắc nghiệm Javascript, CSS, HTML có đáp án - Phần 2

Cho đoạn code sau, kết quả sẽ là: 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);

30/50

Cho đoạn code sau, kết quả sẽ là:
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);

false true false true

false true true true

true true false true

true true true true

Giải thích

Chọn đáp án C