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…
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…
One of the core concepts in NodeJS is the concept of EVENTS, A lot of core functionalities of Nodejs are based on events, an event is basically a signal that something…
Links: https://www.youtube.com/watch?v=HVsySz-h9r4 COMMANDS( Fast ) git init Create a Git repository in the current folder. git status View the status of each file in a repository git add <file> Stage…
GLOBAL vs WINDOW In Javascript, all the function that are global (like setTimeout or Alert) etc are part of a much larger Object called WINDOW In NodeJS this is not…