can we add string and int in javascript

Solutions on MaxInterview for can we add string and int in javascript by the best coders in the world

showing results for - "can we add string and int in javascript"
Lee
06 Apr 2019
1string + number = concatenated string
2
3number + number = the sum of both numbers
4
5string - number = the difference between (coerced string) and the number
6
7"" + 1 + 10 + 2 = (string) "1102"    
8"1102" - 5      = (number)  1097
91097 + "8"      = (string) "10798"