In this example, we build a coin flip game. We have two buttons, head and tail, and we randomly let one side win. We count how many games have been played and how many games we have won and save this as percentage into a high score list in the localStorage
. We use JSON to achieve that.
Attention, this video is a bit longer.