Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
6+9 =