- The ternary operator is a short form of a if-else statement and it helps to write small decisions in one line.
Ex:
let mark=35;
let result=(mark>=35)? "pass" :"fail";
Ex:
let mark=35;
let result=(mark>=35)? "pass" :"fail";
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)