title: js how to make 2d array matrix with for loop and continue counting numbers on next row
body: <p>I'm trying to make my 2d matrix to have numbers which continue on the new row</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var myMatrix = [];
  
  var row = 5;
  var colom = 3;
  
  for (var i = 0; i &lt; rows; i++) {
    var toto = 1;
    myMatrix[i] = [i];
    for (var j = 0; j &lt; colom; j++) {
      myMatrix[i][j] = [i + j];
    }
  
  }
  
  console.log(myMatrix);</code></pre>
  </div>
  </div>
  </p>
  <p>I'm trying to make it print numbers like this:</p>
  <blockquote>
  <p>123</p>
  <p>456</p>
  <p>789 and etc...</p>
  </blockquote>
  <p>but without success:/</p>
  <p>can someone help and also give a video or site with examples where i can learn more about that kind of stuff?</p>