单项选择题
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)