📜  我们可以在 javascript 代码示例中添加字符串和 int

📅  最后修改于: 2022-03-11 15:01:19.454000             🧑  作者: Mango

代码示例1
string + number = concatenated string

number + number = the sum of both numbers

string - number = the difference between (coerced string) and the number

"" + 1 + 10 + 2 = (string) "1102"    
"1102" - 5      = (number)  1097
1097 + "8"      = (string) "10798"