Dear Sir/Madam,
I hope someone can help me with this.
In the third assignment on https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Test_your_skills:_Conditionals
you are supposed to use switch for giving back responses for different scores. However, I keep getting the error: SyntaxError: expected expression, got ‘<’ on the lines where I put (for instance) case <0:
It seems as if it is not allowed to use < or > and if case always just checks if the expressions between the brackets after switch exactly matches (===) the expression after case. I tried a lot of different things, but can’t get rid of this error. Am I doing something wrong in my syntax?
I put my code up at JSfiddle and hope you can have a look at it through this link: https://jsfiddle.net/kf_km/36dgwk1f/1/#&togetherjs=i5lpMDnUEg.
I hope you can help me with this.
Thanks a lot,
Karen