“ternär” Code-Antworten

JavaScript, wenn Kurzschrift

condition ? doThisIfTrue : doThisIfFalse

1 > 2 ? console.log(true) : console.log(false)
// returns false
Adventurous Ant

ternär

let greeting = ( isBirthday ) ? 'Happy birthday Mrs. Smith — we hope you have a great day!' : 'Good morning Mrs. Smith.';
Outrageous Osprey

Ähnliche Antworten wie “ternär”

Fragen ähnlich wie “ternär”

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen