How to ensure async in es5?

Hello! How to ensure async in es5? I need one function is executed only when the other finishes its execution. Must be a queue, just like doing setTimeout.
June 8th 19 at 16:25
2 answers
June 8th 19 at 16:27
Since the promise appeared only in ES6, will have to settle for kavakami, or bind to some events.
Promises -- not the new syntax, and polyfilla to create their promises, with blackjack and other pleasures. - Ida_Goyet commented on June 8th 19 at 16:30
, aahahah. - maxie.Mo commented on June 8th 19 at 16:33
June 8th 19 at 16:29
Language JavaScriptСовременные opportunities ES-2015
well this is ES6. - Ida_Goyet commented on June 8th 19 at 16:32
I need es5. About promises and generators I know. - maxie.Mo commented on June 8th 19 at 16:35

Find more questions by tags JavaScript