For example:
sumStrings('1','2') // => '3'
C# sumStrings("1","2") // => "3"
My code:
function sumStrings(a,b) {
a = Number(a);
b = Number(b);
var total = a + b ;
return total.toString();
}
When I try the above code with the following, it has a problem.
sumStrings('712569312664357328695151392', '8100824045303269669937');
I get :
7.125774134884027e+26
Instead of:
712577413488402631964821329
Help please!