Skip to main content

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

Back to lesson: Practice: Making Decisions: if / else โ€” Practice