Use case: I open page A, and submit form, and would redirect to B, and auto redirect to C, and then if no action performed, to D automatically. I need to do something in B, C, D, How to do it in callbacks, or in promises?
I want to extract some contents in B when fetching it, and after that, B will auto redirect to C, and I want to extract contents from C, and wait several seconds, after D is fetched, I would do something to D using the contents extracted from B and C.
I know how to write the logic, but I don't know how to compose them in callbacks or promises, promise way is preferred.