The event-based asynchronous design of the FileReader does not lend itself to writing fluent code sequentially.
This video illustrates the problem and "promises" (pun intended) to solve it in a following one.
• JavaScript: The problem with the FileReader
Previous videos referred to in this video:
1) HTML5 and JavaScript: How to use the file input control
• HTML5 and JavaScript: How to use the file ...
2) JavaScript: FileReader
• JavaScript: FileReader
-----------------
Media used:
1) Shiva Shambho
• Shiva Shambho
2) The Spiritual Benefits of Simplicity
• The Spiritual Benefits of Simplicity | Bro...
------------------------------
If you want to become a software developer, join my mailing list at https://sathyaish.net/?cmp=yt&v=dO8yT... and I will send you an email when I launch a new online training course I am starting soon. In this course, I will teach in an online classroom setting. Assuming you're a total newbie with no prior programming knowledge, I will take you to expert level.