Use Recursion to Create a Range of Numbers 12

Hello guys please help with these challenge , it keeps stating “ReferenceError: rangeofNumbers is not defined” ?

   **Your code so far**

function rangeOfNumbers(startNum, endNum) {
if (endNum < startNum) {
return [];
} else {
  var countArray = rangeofNumbers(startNum, endNum - 1);
return countArray;
console.log(rangeOfNumbers(1, 9));
   **Your browser information:**

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

Challenge: Use Recursion to Create a Range of Numbers

Link to the challenge:

it’s not defined! remember that capitalization matters

1 Like

Thanks very much, it helped.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.