I\'d like to sum the values of an object.
I\'m used to python where it would just be:
sample = { \'a\': 1 , \'b\': 2 , \'c\':3 }; summed = sum(sampl
let prices = { "apple": 100, "banana": 300, "orange": 250 }; let sum = 0; for (let price of Object.values(prices)) { sum += price; } alert(sum)