Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/marijnh/Eloquent-JavaScript
/ 03_2_recursion.js
File
03_2_recursion.js
code/solutions/03_2_recursion.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
function
isEven(n) {
2
if
(n == 0)
return
true;
3
else
if
(n == 1)
return
false;
4
else
if
(n < 0)
return
isEven(-n);
Callers
nothing calls this directly
Calls
1
isEven
Function · 0.85
Tested by
no test coverage detected