单项选择题

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