Regarding Recursion in a countup Array

So basically I do not understand whats happening above. Countup function is being called after the base case and assigned to the const countArray? Does not that make countArray undefined and how do we know its an Array? Whats the significance of const here?

Also It would be wonderful if you could please walk me through whats really happening in the code.

Made this walkthrough …


My first video - phrase of the day “is going to happen” :joy:
Runner-up “console.log down here”
1 Like