diff --git a/index.html b/index.html deleted file mode 100644 index 95e7aac..0000000 --- a/index.html +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/index.js b/src/index.js index bd59f7b..9519d64 100644 --- a/src/index.js +++ b/src/index.js @@ -116,7 +116,7 @@ const moveSnake = (direction) => { * Set key events */ -setSnakeDirection = (direction) => snake.direction = direction; +const setSnakeDirection = (direction) => snake.direction = direction; document.onkeydown = function(e) { switch (e.keyCode) {