console.log(true+1); //2,true隐式转换成了数值类型1
console.log('name'+true); //nametrue,true隐式转换成了字符串"true"
//事实上任何数据类型遇到字符串都会转换成字符串
console.log(undefined+1); //数值类型NaN
console.log(typeof null); //object