title: Javascript multidimensional arrays with alphanumeric keys
body: <p>This seems to be a common source of confusion from what I've seen, and apparently I'm no exception. I've read a few tutorials on this, and I still can't quite get my head around it. From what I can gather, Arrays are objects in Javascript, just like Strings and other variable types. But I still don't get how that helps me declare a multidimensional array with alphanumeric keys.</p>
  
  <p>In PHP I can simply write:</p>
  
  <pre><code>$calendar = array();
  
  foreach ($schedule-&gt;currentExhibitions as $key) {
      $calendar[$key["ExhibitionID"]]["startDate"] = date("Y,n,j", strtotime($exhibition["StartDate"]));
      $calendar[$key["ExhibitionID"]]["endDate"] = date("Y,n,j", strtotime($exhibition["StartDate"]));
  } 
  </code></pre>
  
  <p>But in Javascript trying something similar will create errors. Should I create an Array and fill it will Objects? If so, how would I go about doing so? Or should I just use an Object entirely and skip having any sort of Array? (If so, how do I create a multidimensional Object?)</p>
  
  <p>Sorry for the newbish quesion!</p>