const condition = true; // (condition) ? if : else (condition) ? console.log("it is true") : console.log("it is false");