title: Multiplication Table in JavaScript
body: <p>I have a simple multiplication table in JavaScript with two nested for loops:</p>
  
  <pre><code>var result = '\n';
  for (var i = 1; i &lt; 11; i++) {
      for (var j = 1; j &lt; 11; j++) {
          result += (i*j) + ' ';
      }
      result += '\n'
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/ZftjL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZftjL.png" alt="See screenshot of browser console results"></a></p>
  
  <p>The first position is 1, but I want it to start with an empty first position, or an "X" for example, so that the result of 1 * 1 is also displayed like here</p>
  
  <p><a href="https://i.stack.imgur.com/zsvx2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zsvx2.png" alt="Screenshot of desired result"></a></p>