Practice ยท 1 of 2
Write a Grader
Write a function grade(score) that returns a letter grade string:
- 90 or above returns "A"
- 80โ89 returns "B"
- 70โ79 returns "C"
- anything below returns "Keep practicing"
Then log the result of grade(85) and grade(92).
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: Making Decisions: if / else โ Practice