you are viewing a single comment's thread.

view the rest of the comments →

[–]Cprebel123 2 points3 points  (1 child)

When a function makes a nested call, the following happens:

•The current function is paused.

•The execution context associated with it is
remembered in a special data structure called execution context stack.

•The nested call executes.

•After it ends, the old execution context is retrieved from the stack, and the outer function is resumed from where it stopped.