August 2017
Beginner
298 pages
7h 4m
English
You'll probably be wondering by now what it is that I'm calling a Promise? Well, a Promise, as it sounds, is a Promise made by JavaScript that the asynchronous function will complete execution at some point.
In the previous chapter, we came across an asynchronous event: reading the contents of a file using FileReader. This is how FileReader worked:
You might be wondering, what if I need to execute some code only after the event is complete? This is how FileReader handles it:
Read now
Unlock full access