Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
April 25, 2021 10:02 am GMT

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:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To