Here's the first game I ever wrote, a few months after I started learning how to program:
https://monster-mash.surge.sh/
My favorite part is the memory leak where monsters keep appearing even after you're dead, which will eventually crash your browser.