I am working on a project that involves creating our own version of Conway's "Game of Life". I went for a simple representation of my 20x20 grid as many nested divs - the entire grid is a div, each row is a div, and each cell within that is also a div.
My code is working just fine, but I am wondering in retrospect if there was an easier way to create my divs using html/javascript/jquery other than brute-forcing copy-pasting it out. It's something I would naturally think to do with for-loops if it were not HTML, which I don't know very much about.
Is there an easy way to do this?