title: How to declare array with double brackets
body: <p>I'm trying to make an array this way:</p>
  
  <pre><code>var cell = [];    
  cell[0][0] = "Förnamn:";    
  cell[0][1] = "Efternamn:";    
  cell[0][2] = "Telefon:";    
  cell[1][1] = "Leitet";    
  cell[1][2] = "7716";    
  cell[2][0] = "Mats";    
  cell[2][1] = "Loock";    
  cell[2][2] = "7714";
  </code></pre>
  
  <p>But I get this error:</p>
  
  <blockquote>
    <p>Cannot set property '0' of undefined </p>
  </blockquote>
  
  <p>I have also tried this: </p>
  
  <pre><code>var cell = new array[]
  </code></pre>
  
  <p>And get this message:</p>
  
  <blockquote>
    <p>Unexpected token ] </p>
  </blockquote>
  
  <p>And tried this:</p>
  
  <pre><code>var cell = new array()
  </code></pre>
  
  <p>But get this error:</p>
  
  <blockquote>
    <p>array is not defined </p>
  </blockquote>
  
  <p>So I need help to declare my variable. It's important that the following works:</p>
  
  <pre><code>cell[0][0] = "Förnamn:";
  cell[0][1] = "Efternamn:";
  cell[0][2] = "Telefon:";
  cell[1][0] = "Johan";
  cell[1][1] = "Leitet";
  cell[1][2] = "7716";
  cell[2][0] = "Mats";
  cell[2][1] = "Loock";
  cell[2][2] = "7714";
  </code></pre>