Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Ternary Operator

condition ? expression-if-true : expression-if-false;

function findGreater(a, b) {
  return a > b ? "a is greater" : "b is greater";
}
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #Ternary #Operator
ADD COMMENT
Topic
Name
8+3 =