1.Basic JavaScript: Use Recursion to Create a Range of Numbers

Hi! can you help me giving me some clues about the challenge, please. First about the base case. Thank you so much. I think i’ve started to get the idea about how recursion works but I still need more practice. If you have more exercises or a website where i can find more exercise. Please recommend me.

function rangeOfNumbers(startNum, endNum) {
return [];
};

Your browser information:

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

Challenge: Use Recursion to Create a Range of Numbers

Link to the challenge:

What do you think the base case is and what should be returned by the base case?

Well, The base case is the way to stop calling the function itself. I’m not sure a bout what should be returned by the base case. Maybe an empty array?

Yes, but what is the base case condition?

I did it!! I had to check the previous challenge again. I realize it’s kind of same.