Confusion with Recursion

Hi @zak,
Is always a good idea to remember that an algorithm or solution is different from its implementation.

… Will it get outputed in an array automatically?

… does that mean that the function call’s returned value is in an array already?

… i learned that you can push an element to an array not to number or a string. Unless when you do that javascript creates an array for them.just guessing.

JS(the implementation) uses some abstractions: call stack and nested calls that you need to know to answer your questions.

I tried to explain this in another thread:

Cheers and happy coding :slight_smile:

1 Like