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.

The views and opinions expressed in this page are strictly those of the page author. The contents of this page have not been reviewed or approved by the University of Minnesota.