Read the article of how to make JavaScript Tetris:
Tetris game in Modern JavaScript.
index.html
.Check out js-breakout!
I just can't get enough of Tetris so I created an in-detail interactive course on getting started with game development and JavaScript.