For some time, JavaScript events loop used to confuse me. JavaScript is single-threaded, but still it handles thousands of things at the same time (e.g user clicks, network calls and even setting ...