Private Eye


#1

function StudentReport() {
this.grade1 = 4;
this.grade2 = 2;
this.grade3 = 1;
this.getGPA = function() {
return (grade1 + grade2 + grade3) / 3;
};
}

var myStudentReport = new StudentReport();

for(var x in myStudentReport) {

}

console.log("Your overall GPA is " + myStudentReport.getGPA());

I do not know why this isn't working


#2

Hey @storm5638! Can you look at the instructions carefuly? It tells you to add stuff in your for loop.


#3

change the three this to vars