React Calculate Sum or Total from JSON data
===================================
const services = [
{service: "POTATO", price: 200},
{service: "GAS", price: 100},
{service: "Freez", price: 350},
{service: "Has", price: 50}
]
let total = 0;
services.forEach(item => {
total = total + item.price
})
console.log(' Total -----:' + total);