So I'm doing a breakout game, and I'm almost at the point where I'm ready to make the heart of the game, which is all the blocks. I'll probably have to make a div for every one of them and absolute position them (better ways?). But I don't know how to do the javascript. I don't want to make an if statement for every single one of them.

So what do I do? and which property do I use to check if a block is still there or is not (has been hit)?