+ 4
Callbacks vs Promise ?
What are the advantages of callbacks over Promise and vice versa. And what do you guys prefer ?
3 Respuestas
+ 2
https://developers.google.com/web/fundamentals/getting-started/primers/promises
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise
https://spring.io/understanding/javascript-promises
if you have time, please read the above links.
They'll help you.
+ 3
Callbacks are the past and Promises are the future.
Try to code with Promises.
+ 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 ?