Question-2:
Write a ternary operaror condition ( if marks > 40 then result is “pass” else result is “fail”)
In my video I have already explained the if else condition but ternary operator condition was not recorded but now you guys will solve it.
Answers
Answered by
2
Answer:
result = marks > 40 ? "pass" : "fail"
Explanation:
when the condition is true, pass will be selected as the result. and when the condition is false, fail will be the result
Similar questions