+ 4

Callbacks vs Promise ?

What are the advantages of callbacks over Promise and vice versa. And what do you guys prefer ?

27th Mar 2017, 4:43 AM
Ashwani Kumar
Ashwani Kumar - avatar
3 Answers
+ 3
Callbacks are the past and Promises are the future. Try to code with Promises.
28th Mar 2017, 2:24 PM
Elias Papachristos
Elias Papachristos - avatar
+ 2
Thats true sir, promises are the new trend. But i guess most of the libraries still use callbacks. Newayz i am more interested in are there any technical or security fallbacks of callback which lead to introduction of promises ?
28th Mar 2017, 2:45 PM
Ashwani Kumar
Ashwani Kumar - avatar