Very barebones games made with p5.js inspired by Eloquent Javascript. I chose to use a library instead of vanilla Javascript, why re-invent the wheel?
https://etiotan.github.io/p5-game/
hold/click left mouse click, dodge the balls for as long as you can. More time played = more ball