I will explain synchronous (sync) and asynchronous (async) in practical terms only. In synchronous process we do tasks one at a time. In asynchronous process, if we ever encounter long task which do not require our full attention, instead of waiting for the task to be completed, we do other stuffs first. I will use NodeJS to run Javascript as examples in this story.
Table of contents
Asynchronous Javascript Practical ExplanationLet’s code already!Async/ AwaitPromise.all3 Comments
Sort: