title: Drawing 5x5 chess board - Javascript
body: <p>I'm trying to draw a 5x5 chess board on a site, and I got the cells but they aren't starting on a new line every 5 cells...</p>
  
  <p>code for drawing the board:</p>
  
  <pre><code>// Drawing the board
  class Board {
          draw(el){
              let tile = "&lt;div class='tile'&gt;";
  
              for (let row = 0; row &lt; 5; row++) {
                  for (let col = 0; col &lt; 5; col++) {
                      let cellType = tile;
                      el.innerHTML += cellType;
                  }
              }
          }
      }
  
      let b = new Board();
      b.draw(document.getElementById("board"));
  </code></pre>
  
  <p>for the full code look on <a href="http://klaslokaalmaker.nl" rel="nofollow noreferrer">http://klaslokaalmaker.nl</a></p>