I want to sum a list of numbers stored in a JavaScript object. The object is created and updated using this code:
var myscore = $(\'input[name=\"Points1\"]\').va
If you push() to scorelist, I'd be tempted to say it's likely an Array.
push()
scorelist
Array
You could use reduce().
reduce()
var total = scorelist.reduce(function(total, score) { return total + +score; }, 0);