<h1> A Text Chessboard</h1> <div id="outputSpace"> nothing yet</div> <script type="text/javascript"> 'use strict' const SIZE = 8 let row,col; let text=""; for(row = 0; row < SIZE; row ++) { for (col = 0; col < SIZE; col ++) { if ((row+col)%2 == 0) { text += "_"; } else { text += "#"; } } text += "\n"; } text += "\n"; document.getElementById("outputSpace").innerText = text; </script>