欢迎来到牛牛题库网 牛牛题库官网
logo
全部科目 > 大学试题 > 大学期末考试答案、课后测试习题答案

单项选择题

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

点击查看答案
微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题