What is asynchronous code?
id:62Synchronous code is code which runs one statement at a time. If a particular statement requires time to perform its action, this results in blocking code, which stalls the program until the statement has finished executing. Asynchronous code solves this problem, by allowing the program to continue execution in one thread, while a concurrent thread waits for the result of the asynchronous statement. Examples are callbacks, promises, async/await
What is blocking code?
Blocking code is when a statement is waiting for a return(ie from fetch)