Promises in Javascript
4 min readDec 17, 2020
Handling asynchronous tasks in web development is very common. One way to handle this is through promises.
Let’s say that we have the following code in that we are running multiple print commands
console.log('step 1');
console.log('step 2');
console.log('step 3');
console.log('step 4');
console.log('step 5');
console.log('step 6');
console.log('step 7');
console.log('step 8');