Sintaxe do operador ternário
let variableName = condition ? expressionIfTrue : expressionIfFalse;
Code language: JavaScript (javascript)
Silly Snail
let variableName = condition ? expressionIfTrue : expressionIfFalse;
Code language: JavaScript (javascript)