Hi guys, I have looked at the initial solution for this problem and it makes the most sense to me so I broke it down as best as I could to understand it.

My solution is exactly the same as solution one, yet I still keep getting the error message that ‘numbers.push’ is not a function, and I can’t seem to work out why.

Here’s the code.

```
function rangeOfNumbers(startNum, endNum) {
if (endNum - startNum === 0) {
return startNum;
} else {
let numbers = rangeOfNumbers(startNum, endNum - 1);
numbers.push(endNum);
return numbers
}
};
console.log(rangeOfNumbers(3,6))
```

```
**Your browser information:**
```

User Agent is: `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36`

.

**Challenge:** Use Recursion to Create a Range of Numbers

**Link to the challenge:**