I'm a self-taught dev focused on websites and Python development.
My friends call me the "Data Genie".
When I get bored, I find tech to read about, write about and build things with.
Thanks for sharing. Nice comparison of the three approaches. I needed to see something like this.
Though, I struggled to see how async and await syntax works compared with promises syntax. I see now how async replaces resolve and await replaces .then - this guide explains it well:
Thanks for sharing. Nice comparison of the three approaches. I needed to see something like this.
Though, I struggled to see how async and await syntax works compared with promises syntax. I see now how
async
replacesresolve
andawait
replaces.then
- this guide explains it well:javascript.info/async-await
Also it defines functions using traditional syntax rather than
const
and arrow functions so it was easier to read to learn async syntax.