This Async JavaScript MISTAKE Is Too Common!

preview_player
Показать описание
This is one of the most common coding mistakes. Stop doing this!

Prepping for your frontend interviews? Use code "conner" for a discount on my course FrontendExpert:

Рекомендации по теме
Комментарии
Автор

I think calling it a "bug" would be quite misleading, since it simply just "works as intended". Its the user's responsibility to use it properly.

hayanwulf
Автор

You could signal that the variable is updated and wait for that in the main thread

disdroid
Автор

use monads and functional async without even know these concepts. love "plan" in js-awe library.

josemarin
Автор

Wouldnt call that itself a bug by any means as that is intended, but a common mistake for sure

alql
Автор

It makes sense to use these in development.. But why the fish we need this complication in Test Automation 😜

nagamanickammani
Автор

yup for me this is the difficult part about learning async javascript.

awakenwithoutcoffee