Looking at the code
This is wrong...
ces. + \n"
it should be
If and Else is fine if you were writing in VBscript but we aint!
You need to put back all the
// do something
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...