var scores = [];var highestScore = -1, winners = [];// SOMETHING NEEDS TO HAPPEN TO scores HERE// OR ELSE THIS FOR LOOP IS NEVER GOING TO RUNfor (var i = 0; i < scores.length; i++) { if (scores[i] > highestScore) { winners = [i]; highestScore = scores[i]; } else if (scores[i] == highestScore) { winners.push(i); }}
Open in new window
Should probably beOpen in new window
I see a potential problem with this codeOpen in new window