black

大学期末考试答案、课后测试习题

登录

单项选择题

var userName, type = "";
if (typeof(userName) === "undefined") {
type = "boolean";
} else if (typeof(userName) === "string" || typeof(userName) === "number") {
type = "string"
} else {
type = "object"
}
console.log(type);
打印结果是()

A.boolean
B.number
C.string
D.object

相关考题

单项选择题 var id = "023";if(typeof(id)==="number"){alert("编号用户");}else if(typeof(id)==="string"){alert("随机用户")}else{alert("临时用户")}以上代码的弹出结果是()

单项选择题 关于wile语句不对的是()

单项选择题 下列程序的输出是()。 (网站)var a = 123; var b; switch (a) { case 123: b = 1; case 123: b = 2; default: b = 3; } console.log(b)

All Rights Reserved 版权所有©在线考试题库网(zxkao.com)

备案号:湘ICP备14005140号-7

经营许可证号:湘B2-20140064