Can someone tell me my mistake?

Tell us what’s happening:

Your code so far


// Only change code below this line
function countdown(n){
if (n < 1) {
return [];
} else {
const countArray = countup(n - 1);
countArray.push(n);
return countArray;
}
}
// Only change code above this line

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36.

Challenge: Use Recursion to Create a Countdown

Link to the challenge:

Hello,

Here const countArray = countup(n - 1); you’re using countup() function, which doesn’t exist

const countArray = countup(n - 1); // wrong
const countArray = countdown(n - 1); //correct