Local storage for high score?

Does anyone know of any tuts or examples on how to show the player his highest score on the title screen every time he starts the game? How can this be done with local storage or any other solution? Thank you!

localStorage.score = 10;
localStorage.score = Number(localStorage.score) + 1;
console.log(localStorage.score);

2 Likes

Thank you so much!!!