单项选择题
下面代码的输出是什么?() 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(nu...
下面代码的输出是什么?() var num = 8; var num = 10; console.log(num);
A.8 B.10 C.SyntaxError D.ReferenceError
下面代码的输出是什么?() function checkAge(data) { if ...
下面代码的输出是什么?() 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 don't 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++); co...
下面代码的输出是什么?() 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