+ 1

Can someone help me debug the code, am trying to add A, B and C together, instead of getting 6(2+2+2) am getting 222

https://code.sololearn.com/WAjRG85Rr1eW/?ref=app

14th Feb 2019, 4:49 PM
Somade Daniel
Somade Daniel - avatar
2 ответов
+ 1
Thanks, it worked now. Thanks alot.
14th Feb 2019, 6:11 PM
Somade Daniel
Somade Daniel - avatar
0
look at line 14 of the Js the math sum line are you adding strings? and not numbers? remove line 14 put in var R = (+A + +B + +C); what happened?
14th Feb 2019, 6:02 PM
peter
peter - avatar