JavaScript Loops Question

Bart and Lisa Simpson are playing a game of dice: they take turns throwing a 6-sided die and keep score by adding up all their rolls. The person who has the higher score after 5 rolls wins. The program below shows the rolls, the running total, and determines the winner.