синтаксис тройного оператора
let variableName = condition ? expressionIfTrue : expressionIfFalse;
Code language: JavaScript (javascript)
Silly Snail
let variableName = condition ? expressionIfTrue : expressionIfFalse;
Code language: JavaScript (javascript)