【JS错题总结】JS中的typeof
var test = 1.2
console.log(typeof test === 'float');// false
console.log(typeof test) // number
var test2 = '4399' - 0
console.log(typeof test2 === 'number') // true
var sym = Symbol(1)
console.log(typeof sym === 'symbol') // true
var bigint = BigInt(10000)
console.log(typeof bigint === 'bigint') // true
JS 中没有 float 这个数据类型!
typeofundefinedbooleanstringnumberobjectfunctionsymbolbigint