Finished Simon game, looking for feedback and particularly wondering about javascript code quality

I put together the Simon game over a few days. Coding most of it was rather fun except for getting the interval function to work properly, and I think I managed to eliminate the issue where it was very easy to break the game by clicking around frantically. You can play it here but I think it’s a rather generic Simon, what I’m more worried/curious about is the javascript (

I tried to use the “function does one thing” rule to the best of my understanding, but right now I lack the experience to tell if this is acceptable code or not. I’d love to know because if it is, I’ll start going over my older projects and rewriting them in this style.


One thing you can do to get suggestions on code quality is use Code Climate. It’s free to use with your git repo and can make some best practice suggestions.