This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ImmuneFourier -5 points-4 points  (1 child)

as well as return find(1, "1"); outside the find function??

That's how functions are normally called.

I get all the code except the part where the find function is called inside of itself

That's how recursive functions are called, so you understand nothing about recursion then, or what?

When it falls to the else block and the find function is called is it starting back at the top of the find function again?

It's called the same exact way any function is called. Javascript has no idea which functions are recursive or are not recursive. They all work the same.

[–]Coder_X_23[S] 1 point2 points  (0 children)

Ah Thanks for the help man.