SyntaxFix
Write A Post
Hire A Developer
Questions
let prices = {_x000D_ "apple": 100,_x000D_ "banana": 300,_x000D_ "orange": 250_x000D_ };_x000D_ _x000D_ let sum = 0;_x000D_ for (let price of Object.values(prices)) {_x000D_ sum += price;_x000D_ }_x000D_ _x000D_ alert(sum)