Skip to content

Instantly share code, notes, and snippets.

@kwyn
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kwyn/9959884 to your computer and use it in GitHub Desktop.
Save kwyn/9959884 to your computer and use it in GitHub Desktop.
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