title: How to declare bi-dimensional array of certain size in Javascript
body: <p>For declaring an array of length n in Javascript I'm using this code:</p>
  
  <pre><code>const n = 5;
  const myArray = Array(n).fill(false);
  
  &gt; [false, false, false, false, false]
  </code></pre>
  
  <p>But how to declare an bi-dimensional array, for example anotherArray(m,n) ?</p>
  
  <p>seems that </p>
  
  <pre><code> const anotherArray = Array(m, n).fill(false);
  </code></pre>
  
  <p>doesn't work.</p>