**Tell us what’s happening:**

I am trying to understand the process/ logic of this exercise.

it asks that if (n<1) it should return an empty array,

if (n===5) then the array shoud return [5,4,3,2,1] &

if (n===10) then the array shoud return [10,9,8…1]

just not sure enough how to put it into code.

any help much appreciated.

thank you

**Your code so far**

```
// Only change code below this line
function countdown(n){
if (n < 1){
return[];
}else {
if(n===10){
return[n-1];
}
const countArray = countdown(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; rv:77.0) Gecko/20100101 Firefox/77.0`

.

**Challenge:** Use Recursion to Create a Countdown

**Link to the challenge:**