const MSG_EVEN = "The number is even."; const MSG_ODD = "The number is odd."; const evenOrOdd = (n = prompt("Enter a number: ")) => (n % 2) == 0 ? MSG_EVEN : MSG_ODD;
const evenOrOdd = (number = prompt("Enter a number: ")) => (number % 2) == 0 ? "The number is even." : "The number is odd.";- const MSG_EVEN = "The number is even.";
- const MSG_ODD = "The number is odd.";
- const evenOrOdd = (n = prompt("Enter a number: ")) => (n % 2) == 0 ? MSG_EVEN : MSG_ODD;