Sum of String and Number in Javascript | #javascript

preview_player
Показать описание
Sum of String and Numbers In Javascript.

If you sum a number with a string you will get ,this:

'500' as string + 1; then output will be '5001'

Pretty strange,right?

But if you sum a number with a number then there will be no doubt:

500 +1; Then Output will be 501.
Рекомендации по теме
visit shbcf.ru