var a;// 变量声明了但未初始化
console.log(a);// undefined
console.log(typeof a);// undefined
console.log(Number(a));// NaN
console.log(Boolen(a));// false
console.log("---------------------");var b =null;// 变量声明了但存放了空指针
console.log(b);// null
console.log(typeof b);// object
console.log(Number(b));// 0
console.log(Boolen(b));// false
console.log("---------------------");// 变量未声明
console.log(c);// ReferenceError: c is not defined
console.log(typeof c);// undefined
console.log(Number(c));// ReferenceError: c is not defined
console.log(Boolen(c));// ReferenceError: c is not defined
console.log("---------------------");