I Am Trying To Calculate The Total Votes Cast In The Current Race Array By Apply

I am trying to calculate the total votes cast in the current race array by applying the forEach() method to i index of the votes array using the calcSum() function as the callback function. I have to call the candidateRows() function using the counter variable i and the totalVotes variable as parameter values. Then I have to add the value returned by this function to the value of the reportHTML variable. Any help would be greatly appreciated.

"Order a similar paper and get 100% plagiarism free, professional written paper now!"

Order Now