1、基本数据类型
string
,number
,boolean
,null
,undefined
,symbol
,object
2、 == 和 === 的区别?
==
在类型不相等的情况下,会做一步强制转化。
===
如果判断类型不相等的情况下,就会停下来,返回false
。
3、 把undefined和null转成Number分别是什么
Number(null) == 0; //true Number(undefined) == NaN。//true
4、 typeof array, null, undefined, NaN分别是什么
typeof array; // "object" typeof null; //"object" typeof unde