An Interest In:
Web News this Week
- March 28, 2024
- March 27, 2024
- March 26, 2024
- March 25, 2024
- March 24, 2024
- March 23, 2024
- March 22, 2024
April 25, 2021 10:02 am GMT
Original Link: https://dev.to/alfredosalzillo/can-you-hack-this-2-1ia8
Can you hack this? 2
Write an isEven
function to check if a number is even
without using the modulus
operator.
const isEven = (n) => ...isEven(2) // => true isEven('127') // => falseisEven('12abc2') // => false
Original Link: https://dev.to/alfredosalzillo/can-you-hack-this-2-1ia8
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To