Created
May 10, 2021 14:30
-
-
Save RahmatSaeedi/00548ac885bd5d39035f1c685426c46d to your computer and use it in GitHub Desktop.
CodeSignal - Arcade - Intro - JS - evenDigitsOnly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function evenDigitsOnly(n) { | |
return n.toString().split("").every((n) => (parseInt(n) % 2 == 0)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment