typeof運(yùn)算符結(jié)果
typeof Symbol() //"symbol"
typeof Number() //"number"
typeof String() //"string"
typeof Function() //"function"
typeof Object() //"object"
typeof Boolean() //"boolean"
typeof null //"object"
typeof undefined //"undefined"
javaScript數(shù)據(jù)類型
值類型(基本類型):字符串(String)、數(shù)字(Number)、
布爾(Boolean)挂疆、空(Null)夹囚、未定義(Undefined)、Symbol液样。
注:Symbol 是 ES6 引入了一種新的原始數(shù)據(jù)類型,表示獨(dú)一無(wú)二的值。
引用數(shù)據(jù)類型:對(duì)象(Object)于宙、數(shù)組(Array)、函數(shù)(Function)悍汛。