title: How to check in 2d array if length of row and column are equal?
body: <p>I would to like check is length of columns in array 1 is equal length of rows in array 2. But it seems my code doesn't work.</p>
  
  <pre><code>if(m1[0].length = m2.length) {
  
      document.getElementById("compute").innerHTML = "&lt;p&gt;True&lt;/p&gt;";
  
  } else {
  
      document.getElementById("compute").innerHTML = "&lt;p&gt;False&lt;/p&gt;";
  
  }
  </code></pre>