Coming from a Java background, this is my first JavaScript-only game. Looking I'm looking for some advice on what to improve.
Also, I'm having trouble when it comes to program design, sometimes. Sometimes I don't know if I should write class-like code or just plain functions, how. How does one go about deciding on this?
code of the snake: githubCode of the snake: