JAVASCRIPT Async and Await

ASYNC and AWAIT "Async and await" helps you write asynchronous code like synchronous code :) every time you have a function that returns a Promis you can "await" that result let result…

Continue Reading JAVASCRIPT Async and Await

Javascript Promises

FAST CODE: var readFile= function (path,type){ return newPromise((resolve,reject)=>{ //I KNOW IS CONFUSING BUT THIS IS THE CODE TO MAKE THE .THEN // CHAIN POSSIBLE, EVERY FUNCTION IN THE CHAIN SHOULD…

Continue Reading Javascript Promises