Running Totals
Running Totals
A loop can update one variable over and over. This is how many totals, counters, and scores are built from repeated values.
Your task: Use a loop to add every number in dailyMinutes into totalMinutes. Log the total after the loop.
Free with a JS Exercises account
Sign in to start coding, run your solution, and keep your progress saved for later. No payment needed.
By continuing, you agree to our Terms and Privacy Policy. We'll send occasional product updates and news. You can unsubscribe anytime.
Running Totals
A loop can update one variable over and over. This is how many totals, counters, and scores are built from repeated values.
Your task: Use a loop to add every number in dailyMinutes into totalMinutes. Log the total after the loop.