Geek | JS MATH IS NOT MATHING



Yes it should be 2589 As post says, it adds numbers 3 4 5 6 7 to sum of 25, but since "8" is string it becomes "258" which is also string now and adding number 9 to that string ends up in string as well coming to "2589"