Quarter scores

First quarter

Second quarter

Third quarter

Fourth quarter

The total will appear here.

Important JavaScript

A for loop walks each index and adds that quarter’s points.

let total = 0;

for (let index = 0; index < scores.length; index = index + 1) {
  total = total + scores[index];
}