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.