I am doing this: function getOrderHtml() {
let orderHtml = ``
orderArray.forEach(function(order){
orderHtml += `
<div>
<p class="food-name">${order.name}</p>
<p class="food-name">${order.ingredients}</p>
<p class="food-name">${order.price}</p>
</div>`
})
to get the listed items which I choose from the menu. Now I want to show the total price under it of all the products. How can and how should I calculate that? And should I use the same function, or a new one?
here my scrim: https://scrimba.com/scrim/co060441c952162626eade4ed