Hi I am trying to sum an array on Javascript with the following codes.
var data[]: var total=0; data.push[x]; // x is numbers which are produced dynamically. f
Use parseInt() function javascript
total=parseInt(total)+parseInt(data[i]);