What is better kolbeki or promises and async await? Recently I read in a comment on YouTube that the best practice in nodejs will be using callbacks. As for me, the promises are simpler and the code is not so noodly, but with async await, everything is very good, if you need to perform a chain. But still this is on the part of my convenience, but what about the general practices?
- And what is the difference between a callback and a promise, except for the syntax? And how do you imagine async / await without promises? - Darth
- async await with promises. Just promises can be done without async await. The difference is in syntax. I want to know how best. A lot of code in all examples of libraries work with callbacks, not promises. - Nazar Kalytiuk
- @NazarKalituk Use async / await, they are very convenient. And by the way, you can use util.promisify from the node. - Save14
|