js基本类型有 undefined boolean null string number
es6新增有 Symbol BigInt
console.log(typeof undefined)
console.log(typeof null)
console.log(typeof 1)
console.log(typeof '1')
console.log(typeof true)
// es6新增基本数据类型
// 1.Symbol
console.log(Symbol(123))
console.log(typeof Symbol('123'))
// 2. BigInt
var bigInt = BigInt('9007199254740999')
console.log(bigInt, typeof bigInt)
undefined
object
number
string
boolean
Symbol(123)
symbol
9007199254740999n bigint