Result
Requirement
What needs to be done
Build a form with a Marks field and a Check button.
When the user clicks Check, use an if and else to decide the result: if Marks is 40 or more, show Pass, otherwise show Fail.
Decide the boundary clearly. Is exactly 40 a Pass? Test 39, 40 and 41 to confirm your condition behaves the way you expect.