基本(值)類型
- String :任意字符串
- Number: 任意數(shù)字
- Boolean :true/false
- undefined :undefined
- null :null
對象(引用)類型
- Object :任意對象
- Function :一種特別的對象(可以執(zhí)行)
- Array :一中特別的對象(數(shù)值下標拟逮,內(nèi)部數(shù)據(jù)是有序的)
判斷
- typeof (返回數(shù)據(jù)類型的字符串表達)
- instanceof :判斷對象的具體類型
eg: A instanceof B (A是否屬于B的實例)
- ===/== (前者不會強制轉(zhuǎn)換撬统,后者會強制轉(zhuǎn)換)