Interactive online courses HTML Academy
2026-03-09 14:06 Diff

Scoring of points and misses is complete. It’s time to log the results.

Log game results in the console: you win or you lose. Let’s also log the statistics, including the number of collected points and the number of misses.

How to determine if the player won or lost? If after the loop the number of points is greater than or equal to one hundred, then the player won. Otherwise, the player lost.

That’s all, the program is ready to be used!

And remember: even an infinite loop must always end!