Ad
Code
Diff
  • const evenOrOdd = (number = prompt("Enter a number: ")) => `The number is ${number & 1 ? "even" : "odd"}.`;
    • const evenOrOdd = (number = prompt("Enter a number: ")) => `The number is ${number % 2 ? "even" : "odd"}.`;
    • const evenOrOdd = (number = prompt("Enter a number: ")) => `The number is ${number & 1 ? "even" : "odd"}.`;