Conditionals
Conditionals
π¨βπΌ We're building a grade calculator for a school system. Based on a numeric
score, we need to determine the letter grade.
π¨ Open
and:
-
Write an
if/else if/elsechain to determine the letter grade:- 90 and above: "A"
- 80-89: "B"
- 70-79: "C"
- 60-69: "D"
- Below 60: "F"
-
Add a check to see if the student passed (grade C or above)
π° Check the highest ranges first so the first match wins.
π MDN - if...else


