Created
July 9, 2017 10:03
-
-
Save alexpilugin/1c859d8bc4d2dd25b4789f10755ab99b to your computer and use it in GitHub Desktop.
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 isEven(a) { | |
if (a < 0) a = -a; | |
if (a == 0) return true; | |
if (a == 1) return false; | |
return isEven(a - 2) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
// No recursion: