I wonder what is better, nested or chained promises, or it depends on the context? What are the cons and pros of each.
if I use chained promises, how do I reuse variable that were set in the previous promise?
Thanks!
I wonder what is better, nested or chained promises, or it depends on the context? What are the cons and pros of each.
if I use chained promises, how do I reuse variable that were set in the previous promise?
Thanks!