Asynchronous Javascript
Javascript is synchronous, blocking, single-threaded language. Code executes top-down and only one line is executed at a time.
Single-threaded? Thread is a process that program can use to run a task, each thread can only do one task at a time.
There are ways to implement asynchronous code by using:
- timeouts and intervals
- callbacks
- promises
- async/await
- event loop
Read more
- youtube.com/video "Asynchronous JavaScript Crash Course" by Codevolution.
- youtube.com/video "Javascript promises -- Tutorial for beginners" by ColorCode.