Tell us what’s happening:
Describe your issue in detail here.
The code work in Visual Studio, but in the freeCodecamp platform does not.
Thanks in advance.
**Your code so far**
function rangeOfNumbers(startNum, endNum) {
if(startNum > endNum)
{
return [];
}
const regressao = range(startNum +1 , endNum);
regressao.unshift(startNum);
return regressao;
};
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36
Challenge: Use Recursion to Create a Range of Numbers
Link to the challenge: