Looking at the code
This is wrong...
ces. + \n"
it should be
ces.\n" +
because in javascript you are adding a further element to the end of an existing string which in this case is a string.
If and Else is fine if you were writing in VBscript but we aint!
You need to put back all the
if( ...){
// do something
}else if(...
because javascript uses lower case if , else if conditionals.
so putting all the if else's properly, on my javascript console I get
Uncaught SyntaxError: Unexpected token else grades.html:43 on line 43 BUT !!! that is not where the error is, it is actually the line above it.
So without changing the line numbers, just the elements that need putting back in to play, you should get the same error. Can you spot it?
You still have code problems but we will discuss those in a bit...