Last active
August 29, 2015 13:58
-
-
Save kwyn/9959884 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
var is_even = function(a){ | |
if (a === 0){ | |
return true; | |
}else{ | |
return is_odd(a - 1, 'testb'); | |
} | |
}; | |
var is_odd = function(b){ | |
if (b === 0){ | |
return false; | |
}else{ | |
return is_even(b - 1, 'testa'); | |
} | |
}; | |
is_odd(5, 'testz'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment