思考如下代码会输出什么结果?
console.log(
typeof ['a']
)
console.log(
typeof new Array()
)

console.log(
typeof 'abc'
)
console.log(
typeof new String('abc')
)

console.log(
typeof function(){}
)
console.log(
typeof new Function()
)

console.log(
typeof 12
)
console.log(
typeof new Number(12)
)

console.log(
typeof {a:1,b:2}
)
console.log(
typeof new Object({})
)

console.log(
typeof Array
)
console.log(
typeof Object
)


6556

被折叠的 条评论
为什么被折叠?



