We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ec85ae commit 0acdf4fCopy full SHA for 0acdf4f
js/snake.js
@@ -1025,10 +1025,3 @@ SNAKE.Board = SNAKE.Board || (function() {
1025
1026
}; // end return function
1027
})();
1028
-function getHighScore () {
1029
- document.getElementById('high-score').addEventListener('click', function () {
1030
- if (localStorage.jsSnakeHighScore === 0) alert('You have not played this game yet!');
1031
- else
1032
- alert('Your current high score is ' + localStorage.jsSnakeHighScore + '.'); });
1033
-}
1034
-getHighScore();
0 commit comments