Alright, so, I’m honestly following the example of an early exercise for recursion that returns and array of numbers counting up to n. So, I figured I could use endNum - 1 as the parameter that does the counting and solve the problem with answer.push(endNum);.
I get  when if startNum is larger than endNum.
I return the [startNum] if both of the parameters are equal.
However, when I try rangeOfNumber(1, 5) the function only returns .
in the sense that, or you start with a startNum bigger than the endNum or the first sentence is not gonna happen.
If you have startNum and endNum being equal, (once you fix that issue with the assignment operator), your function returns [startNum] and stop - there is not a new function called in which startNum is biggern than endNum