DEV Community

Discussion on: Can you hack this? #2

Collapse
 
spino233 profile image
Angelo Caci

const isEven = (n) => !!n.toString().match("^[0-9]*[02468]$");