What is Asynchronous?
Introduction to the concept of asynchronous and synchronous.
We'll cover the following...
Background
JavaScript is a single-threaded language. At any time, only one instruction is processed by a JavaScript program. The program uses only one processor at any given time. Look at the following code for an example.
Press + to interact
for (var i = 0; i < 100; i++){process.stdout.write(`${i} `);}
In the above code, numbers are printed in a loop. The program runs entirely on the computer’s processor. The effective speed of computation is dependent on the processor’s speed. Only one instruction can be executed at the time. All instructions are executed so that no ...
Access this course and 1400+ top-rated courses and projects.