title: JavaScript Multi-Dimensional Array
body: <p>I have a Student, who is in many courses, which have many Modules for each course.</p>
  
  <p>So far, I have got:</p>
  
  <pre><code>var myStudent = new MySchool.Student("Bart", "Simpson", "0800 Reverse", "Some Street", "Springfield");
  
  myStudent.addCourse(new MySchool.Course("S1000", "Skateboarding"));
  myStudent.addCourse(new MySchool.Course("Q1111", "Driving"));
  myStudent.addCourse(new MySchool.Course("D999", "Avoiding Detention"));
  </code></pre>
  
  <p>Student.JS</p>
  
  <pre><code>MyStudent.Student = function (firstName, lastName, tel, address1, address2) {
      this._firstName = firstName;
      this._lastName = lastName;
      this._tel = tel;
      this._address1 = address1;
      this._address2 = address2;
      this._courses = new Array();
  
  };
  
  //Add course:
  addCourse: function (course) {
      this._courses.push(course);
  },
  </code></pre>
  
  <p>This works fine.  However, I would like to add Modules to this.  So for each course there are multiple modules.</p>
  
  <p>I have tried performing a multi-dimensional array but with no success.</p>
  
  <p>Can someone please advise? Is there an alternative?</p>