title: JavaScript: Add new property to array items using .forEach
body: <pre><code>let foods = [
    { name: 'bread', carbs: 36, protein: 8, fat: 2 },
    { name: 'mayo mustard mix', carbs: 0, protein: 0, fat: 10 },
    { name: 'turkey', carbs: 0, protein: 25, fat: 1 },
    { name: 'cheese', carbs: 0, protein: 5, fat: 7 },
  ]
  </code></pre>
  <p>I need to calculate the calories by multiplying carbs, protein, and fat together and then add the results together.</p>
  <p>Im pretty stuck on this one, i've gotten to</p>
  <pre><code>foods.forEach((element, index, array =&gt; { })
  </code></pre>
  <p>but not really sure where to go from there.</p>