Answers for "can we add string and int in javascript"

0

can we add string and int in javascript

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"
Posted by: Guest on August-31-2021

Code answers related to "can we add string and int in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language