Menu
I just did this function in my program
I am wondering if i wrote it right?
such as the placements of my { and }
did i put them in the correct spots?
thanks
here is my code
[CODE]
function totalVotes(votes){ // script element that will calculate the array
var total = 0;
for (var i = 0; i < votes.length; i++);
{
total = total + votes[i];
}
return total;