What do you think will be result of this code below? Many people will assume that it will not run all the promises. That it will stop executing after the third index. But the fact is promise.all runs parallel so it will map through all the array. However, since one of them is rejecting, it […]
Setup Express in Node.js
Node.js is an open source server environment that allows us to use JavaScript. Express is a minimal and flexible Node.js web application framework to provide server side functionality for web and mobile applications. Let’s start by creating a folder where you want your express server to be running. Execute the following command in your command […]