**加号(+)除了可以实现数学运算 还可以实现字符串拼接**
**
**
var a = "a";
var b = 20;
console.log( typeof(a+b) ); //隐式类型转换 String
输出结果为 String
**
**
var a = "10";
var b = 20;
console.log(b-a); //隐式类型转换 Number
console.log(b*a)
console.log(b/a)
console.log(b%a)
输出结果分别为 10 200 2 0
**
var a = "hello";
var b = 10;
console.log(a*b);
输出结果为 NaN ( not a number )
单引号以及双引号的使用 ()**
**
加号实现字符串拼接
var str = "hello world";
console.log("?"+str+"!")
document.write("
"+str+"
")document.write("
hello
")document.write('
hello
')document.write('
'+str+'
')a++是先进行取值,后进行自增。++a是先进行自增,后进行取值。**