black

计算机程序设计综合练习

登录

单项选择题

下面代码的输出是什么?()
function sum(a, b) {
 return a + b;
}
sum(1, "2");

A.NaN
B.TypeError
C."12"
D.3

相关考题

单项选择题 下面代码的输出是什么?() function Person(firstName, lastName) { this.firstName = firstName; this.lastName = lastName; } const lydia = new Person("Lydia", "Hallie"); const sarah = Person("Sarah", "Smith"); console.log(lydia); console.log(sarah);

单项选择题 下面代码的输出是什么?() var a = 3; var b = new Number; var c = 3; console.log(a == b); console.log(a === b); console.log(b === c);

单项选择题 下面代码的输出是什么?() let c = { greeting: "Hey!" }; let d; d = c; c.greeting = "Hello"; console.log(d.greeting);

All Rights Reserved 版权所有©财会考试题库(ckkao.com)

备案号:湘ICP备2022003000号-2