Can you hack this? #2
Alfredo Salzillo
Posted on April 25, 2021
Write an isEven
function to check if a number is even
without using the modulus
operator.
const isEven = (n) => ...
isEven(2) // => true
isEven('127') // => false
isEven('12abc2') // => false
💖 💪 🙅 🚩
Alfredo Salzillo
Posted on April 25, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.