Pass or Fail
JavaScript
10 pts
Pass or Fail
Senait scored 72 in her maths test. The pass mark is 50. Create:
passed— isscoregreater than or equal topassMark?isPerfect— isscoreexactly100? (use===)result—"Pass"if passed, otherwise"Fail"(use the ternary operator)
Print exactly:
Passed: true Perfect: false Result: Pass
Checklist
- Create
passedandisPerfectwith comparisons. - Create
resultwith the ternary operator. - Print the three labelled 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.
