Skip to main content
deleted 14 characters in body
Source Link
Tyler Carter
  • 61.7k
  • 22
  • 133
  • 153
var total = 0;
$.each(arr,function() {
    total += parseInt(this, 10);this;
});
var total = 0;
$.each(arr,function() {
    total += parseInt(this, 10);
});
var total = 0;
$.each(arr,function() {
    total += this;
});
removed "var add =" It's not needed
Source Link
Chris Pietschmann
  • 29.9k
  • 36
  • 124
  • 167
var total = 0;
var add = $.each(arr,function() {
    total += parseInt(this, 10);
});
var total = 0;
var add = $.each(arr,function() {
    total += parseInt(this, 10);
});
var total = 0;
$.each(arr,function() {
    total += parseInt(this, 10);
});
Source Link
Tyler Carter
  • 61.7k
  • 22
  • 133
  • 153

var total = 0;
var add = $.each(arr,function() {
    total += parseInt(this, 10);
});