Hi, I am reading Eloquent JS book and I just did recursive function exercise. I did this on my own and it works, but I still have problems to get how recursion works, could anyone explain me this code line by line please? Obviously, only part on line 7 is confusing for me, everything else is ok.
function isEven(n) {
if (n == 0) {
return true;
} else if (n == 1) {
return false;
} else {
return isEven(n - 2);
}
}