title: assigning value to array in javascript
body: <p>in php you could do like this:</p>
  
  <pre><code> $key1 = 1;
   $key2 = 1;
   $array[$key1][$key2] = 'hi';
  </code></pre>
  
  <p>in javascript i tried with this:</p>
  
  <pre><code> key1 = 1;
   key2 = 1;
   var array = new Array();
   array[key1][key2] = 'hi';
  </code></pre>
  
  <p>but it didnt work. how can i do the same thing in javascript?</p>