Skip to content

DeoluA/PromisesAndRecursionExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

PromisesAndRecursionExample

Code for walkthrough on recursively calling promises

Goal of this code is:

  • promise function should keep recursively calling itself until currentIndex exceeds a particular value (in this case, 5)
  • if the condition is met, resolve to the initial place that called it with the outcome "everything is done: " and the value of the currentIndex.

How to run

Code has no dependencies. Just clone/copy-and-paste, and then run nodejs index.js.

About

Code for walkthrough on recursively calling promises

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published