1 console.log(null==undefined); //结果为true 2 console.log(null===undefined);//结果为false
各自的使用场景:
null,一般将null写入变量中;
undefined,作为已经声明但还没有赋值的变量的初始值。