I can't seem to fully understand the fundamentals off recursive functions. We have this code:
function myself (n) {
if (n <= 1) {
return 1;
}
return n * myself(n-1);
}
myself(5);
I get that 5 would be multiplied by 4 equals to 20 and then 20 multiplied by 3 and so on but what I don't quite get is how can 'n' be two different numbers in one function.