Grade Messages
JavaScript
10 pts
Grade Messages
Use a switch on grade to set message:
"A"→"Excellent""B"→"Very good""C"→"Good"- anything else →
"Keep trying"(usedefault)
Remember break after each case. Then print:
B: Very good
Checklist
- Set
messagecorrectly for the grade. - Use a
switchwith three cases and a default. - End each case with
break. - Print the grade and message.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
