- javascript基础(一)
一.变量类型
值类型.引用类型(数组,对象,函数)
二.typeof
typeof undefined //undefined
typeof {}/[]//object
typeof console.log()//function
typeof null//object
typeof NaN//number
三.转义
1.0==‘’ //true
2.null==undefined //true
解析:0,‘ ’,null,undefined,NaN都会被转为false