Grade Ladder
JavaScript
20 pts
Grade Ladder
Set grade from score with an if / else if / else ladder:
- 90 or more →
"A" - 75 or more →
"B" - 50 or more →
"C" - otherwise →
"F"
Then set certificate to "yes" if the grade is not "F" and homework is true, otherwise "no" (use a second if...else with &&). Print exactly:
Score: 68 Grade: C Certificate: no
Checklist
- Set
gradewith anif / else if / elseladder. - Set
certificatewith a secondif...elseusing&&. - Print the three lines.
🔑 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.
