单项选择题
下面代码的输出是什么?()
const obj = { a: "one", b: "two", a: "three" };
console.log(obj);
A.{a:"one",b:"two"}
B.{b:"two",a:"three"}
C.{a:"three",b:"two"}
D.SyntaxError
点击查看答案
相关考题
-
单项选择题
下面代码的输出是什么?() var num = 8; var num = 10; console.log(num);
A.8
B.10
C.SyntaxError
D.ReferenceError -
单项选择题
下面代码的输出是什么?() function checkAge(data) { if (data === { age: 18 }) { console.log("You are an adult!"); } else if (data == { age: 18 }) { console.log("You are still an adult."); } else { console.log(`Hmm.. You dont have an age I guess`); } } checkAge({ age: 18 });
A.You are anadult!
B.You are still an adult.
C.Hmm..You don’t have an age I guess -
单项选择题
下面代码的输出是什么?() let number = 0; console.log(number++); console.log(++number); console.log(number);
A.1 1 2
B.1 2 2
C.0 2 2
D.0 1 2
