Issue with "Introducing asynchronous JavaScript": (text says the why we can't use an object that is returned async directly in main thread is maybe it is not completely done) #10051
Labels
Content:Learn:JavaScript
Learning area JavaScript docs
MDN URL: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Asynchronous/Introducing
What information was incorrect, unhelpful, or incomplete?
in the example that suggest access to image.src and see how asyc operations work. the text says the reason why we get this error (TypeError: image is undefined; can't access its "src" property) is "You just can't guarantee that the async function will return before the browser has processed the sync block."
but the thing that i learn according other mdn documents is all async callbacks will added to event queue and will execute after pop off of last stack that is related to main thread.the good example of that is calling setTimeout with zero delay.
MDN Content page report details
en-us/learn/javascript/asynchronous/introducing
The text was updated successfully, but these errors were encountered: