44
rated 0 times
[
45]
[
1]
/ answers: 1 / hits: 101531
/ 11 Years ago, tue, march 19, 2013, 12:00:00
So I am designing a grade book interface and I have a course defined as:
<script>
course = new Object();
var name;
var gradingareas;
var finalgrade;
</script>
then later I want to create a new instance:
var gradingareas = new Array(Homework, Classwork, Exams);
course1 = new course(CS1500, gradingareas, 85);
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.
More From » object