Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

syntax of the ternary operator

let variableName = condition ? expressionIfTrue : expressionIfFalse;
Code language: JavaScript (javascript)
Source by www.javascripttutorial.net #
 
PREVIOUS NEXT
Tagged: #syntax #ternary #operator
ADD COMMENT
Topic
Name
2+8 =