title: how to create nxn matrix/array in javascript?
body: <p>I want to create an array or matrix with non-fixed number of rows like 
  <br></p>
  
  <pre><code>var matrix=[[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
              [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
              [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]
  </code></pre>
  
  <p>how can i do that?</p>