You have this line of code
var gradeList = [90, 100, 85];
and then this
setNumber("gradeOutput", gradeList);
Think about what type of parameters setNumber
expects. Try putting console.log(gradeList);
in front of that call to setNumber
to see what you are sending it.