title: JS Making a multiplication table without console.log()
body: <p>I want to build a multiplication table without the use of console.log() in the function. I am currently experiencing difficulty splitting the values. The whole function must be in pure JS. Not intended for use on the DOM. I want the output printed on the terminal.</p>
  
  <pre><code>function multiplicationTable (maxValue){
  
   var array = []
  
   for (var i = 1; i &lt;= maxValue; i++)
   {
    for (var j = 1; j &lt;= maxValue; j++)
   {
     if (j &gt;= 1 &amp;&amp; i &gt;= 1)
     {
       array.push(j*i)
     }
   }
  </code></pre>
  
  <p>}</p>
  
  <pre><code>var m = array.join()
  return m;
  </code></pre>
  
  <p>}</p>
  
  <pre><code>console.log(multiplicationTable(3));
  </code></pre>
  
  <p>Current Output: 1,2,3,2,4,6,3,6,9</p>
  
  <p>Required Output: </p>
  
  <pre><code>1 2 3
  2 4 6
  3 6 9
  </code></pre>
  
  <p>I feel I have to use .split() or .splice(). I just can't pinpoint where to add the values. </p>