Too Long; Didn't Read
I recently read a medium post where the author claimed that using <code class="markup--code markup--p-code">async-await</code> is better than using <code class="markup--code markup--p-code">promises.</code> While this might hold good in general cases, I think that generalisation was too broad and doesn’t do justice to either <code class="markup--code markup--p-code">async-await</code> or <code class="markup--code markup--p-code">promises.</code> For somebody who is new to Javascript making sense of these and decide which one to use can be a challenge. In this post I will list down things that I have learnt about these and how I decide when to use what. If you find anything interesting/useful in this article you can highlight them using our chrome extension <a href="https://bit.ly/highlights-extension" target="_blank">https://bit.ly/highlights-extension</a>