Multi -ternärer Betrieb in JavaScript

const guessNumber = 8
const correctAnswer = 8

const message = guessNumber > correctAnswer ? 'The Guess was too High!' 
    : (guessNumber < correctAnswer) ? 'The Guess was too low!' 
    : 'Perfect guess!'

console.log(message)
Rich Rhinoceros