** THIS IS THE 2nd VIDEO IN THE JAVASCRIPT MULTITASKING SERIES **
Stay tunes (and subscribe to our channel) to get more updates about multitasking in Javascript.
• Multitasking in Javascript
In Javascript, the interpreter does not have multiple threads, which means we have to make do with a single thread, but despite that, using the event loop (that can handle timeouts and intervals), we can achieve concurrency in Javascript.
Although the tasks are running on the same thread, they appear to run parallely. But if we block the thread, we see that both tasks stop.