title: How can I put chess pieces(images) to my div tag?
body: <p>I made a chessboard using JavaScript/TypeScript. I'm trying to add chess pieces to the starting positions and I have no idea how to do that. If someone can give me a heading it would be great!</p>
  
  <pre><code>for (let i=0; i&lt; 64; i++){
      document.getElementById("ChessBoard").
      appendChild(document.createElement("div")).
      style.backgroundColor = parseInt((i / 8) + i) % 2 == 0 ? 'white' : 'black';    
  }
  </code></pre>
  
  <p><a href="http://jsfiddle.net/bellwater99/4Ap4M/217/" rel="nofollow">http://jsfiddle.net/bellwater99/4Ap4M/217/</a></p>