**
1.string toString 相同点和不同点*
相同点
let a = 123
let b = 123
console.log(String(a)) // '123'
typeof(a) // String
b.toString()
console.log(b) // '123'
typeof(b) // String
不同点
toString()无法转换null 和 undefined
let a;
let b=null;
a.toString();//Uncaught TypeError: Cannot read property 'toString' of undefined
b.toString(); //Uncaught TypeError: Cannot read property 'toString' of null
String(a); //"undefined"
String(b);//"null"