avoid callback hell with async / await. Why? It brings a 'synchronous' look to the code, making it easier to reason with.
One important distinction to make is, unlike most programming langs, node is async by default! (people, feel free to correct me, it's sth I am still confused by)
avoid callback hell with async / await. Why? It brings a 'synchronous' look to the code, making it easier to reason with.
One important distinction to make is, unlike most programming langs, node is async by default! (people, feel free to correct me, it's sth I am still confused by)
The description in nodejs.org is clear.
hahaha I never checked it. The moral of this story is, be humble when jumping into a new lang even if you have programmed heaps before.