Quiz Scoreboard
JavaScript
10 pts
Quiz Scoreboard
Senait plays three rounds of a quiz. Under each comment, change score with an assignment of the form score = score + …; or score = score - …;:
- Round 1: add 10 points
- Round 2: add 5 points
- Round 3: lose 3 points
Declare score only once. The last line prints:
Senait has 12 points
Checklist
- Change the score in each of the three rounds.
- Declare
scoreonly once and end with 12. - Print the final line.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
