Updated ternary formula to show the number in the console.log message