How can I perform dynamic chaining in Javascript Promises, all the time I have seen only hardcoding of the calls for eg., (promise).then(request/funct
(promise).then(request/funct
Check the following tutorial for
Programmatic-Chaining-and-Recursive-Functions-with-JavaScript-Promise