SyntaxFix
Write A Post
Hire A Developer
Questions
If I understood you correctly:
var hash = {}; hash['bob'] = 123; hash['joe'] = 456; var sum = 0; for (var name in hash) { sum += hash[name]; } alert(sum); // 579