I've experimented with various methods, but I haven't been able to achieve the desired outcome. My goal is to calculate the total sum of product answers from each array, yet I'm only able to do so for the first array. You can find my complete code on codepen by visiting the following link:
https://codepen.io/Thinker95/pen/bGbOrJb
Here's a snippet of my code:
Calculate(){
this.fights[0].consumption = this.fights[0].rating*this.fights[0].quantity*this.fights[0].operation;
this.answer = this.fights[0].consumption;