execute async call sequentially

fix number of calls Today, i need to figure out a way to execute a bunch of http call sequentially. The problem first looks simple if we have known number of calls so that we can easily put them in callback one by one or chain the promise. number of calls varies However if what…