What is difference between Promise & Callback in Javascript?
Answers
Answered by
0
A promise is a proxy for a value not necessarily known at its creation time. With promises, rather than an asynchronous call accepting a callback, it instead returns a promise. The calling code can then wait until that promise is fulfilled before executing the next step.
Similar questions