Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01d1a17 commit 3717a22Copy full SHA for 3717a22
js/snake.js
@@ -681,7 +681,7 @@ SNAKE.Board = SNAKE.Board || (function() {
681
682
elmHighscorePanel = document.createElement("div");
683
elmHighscorePanel.className = "snake-panel-component";
684
- elmHighscorePanel.innerHTML = "Highscore: " + localStorage.jsSnakeHighScore;
+ elmHighscorePanel.innerHTML = "Highscore: " + (localStorage.jsSnakeHighScore || 0);
685
686
elmWelcome = createWelcomeElement();
687
elmTryAgain = createTryAgainElement();
0 commit comments