if alternative javascript

JavaScript
let count === 0 ? "zero" : count;
//this means: if count = 0 then count = "zero"
Source

Also in JavaScript: