What will be the output of the following recursive function?
function countdown(n) {
if (n <= 0) {
return;
}
console.log(n);
countdown(n - 1);
}
countdown(5);
What will be the output of the following recursive function?
function countdown(n) {
if (n <= 0) {
return;
}
console.log(n);
countdown(n - 1);
}
countdown(5);