typeof的结果

2020-08-03  本文已影响0人  ShoneSingLone
typeof 0 // 'number'
typeof '0' // 'string'
typeof undefined // 'undefined'
typeof true // 'boolean'
typeof Symbol() // 'symbol'
typeof BigInt(1) //"bigint"
typeof [] // 'object'
typeof {} // 'object'
typeof console.log // 'function'
上一篇 下一篇

猜你喜欢

热点阅读