Thats my code but still it doesnt come out. what could be the problem:
Your code so far
// Only change code below this line
function countdown(myArray, n){
if (n <= 0) {
return;
} else{
myArray.push(n);
countdown(myArray, n-1);
}
}
// Only change code above this line
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0
.
Challenge: Use Recursion to Create a Countdown
Link to the challenge: