Skip to content

Commit 0acdf4f

Browse files
authored
removed highscore function
1 parent 8ec85ae commit 0acdf4f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

js/snake.js

-7
Original file line numberDiff line numberDiff line change
@@ -1025,10 +1025,3 @@ SNAKE.Board = SNAKE.Board || (function() {
10251025

10261026
}; // end return function
10271027
})();
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

Comments
 (0)