title: JavaScript creating new instance of objects
body: <p>So I am designing a grade book interface and I have a course defined as:</p>
  
  <pre><code>&lt;script&gt;
  course = new Object();
   var name;
   var gradingareas;
   var finalgrade;
  &lt;/script&gt;
  </code></pre>
  
  <p>then later I want to create a new instance:</p>
  
  <pre><code> var gradingareas = new Array("Homework", "Classwork", "Exams");
  
   course1 = new course("CS1500", gradingareas, 85);
  </code></pre>
  
  <p>I have also tried without the var in front to no avail.  I get an "Uncaught TypeError: Object is not a function"  I am very new to javascript so I don't even know if Im going about this the correct way.  Any help is appreciated Thanks. </p>