Ad
Code
Diff
  • Number.prototype.evenOrOdd = function() {
      return (['Even', 'Odd'][this%2]) || 'Not an integer'
    }
    • Number.prototype.evenOrOdd = function() {
    • return (['Even', 'Odd'][this%2])||'Not an integer'
    • return (['Even', 'Odd'][this%2]) || 'Not an integer'
    • }