Tag: node

Total 65 Posts

Serving Static Files with Node and Express.js

Introduction

In this article, we are going to a build simple app to serve static files like HTML files, CSS files, and images using Node.js and Express.

Configuring the Project and Installing Express

To get started, let's create a new Node.js project by running the init command in

Continue Reading

Promises in Node.js

Introduction

JavaScript is single-threaded, which means that everything, including events, runs on the same thread. If the thread is not free, code execution is delayed until it is. This can be a bottleneck for our application since it can really cause serious performance problems.

There are different ways by which

Continue Reading

Spread Operator in JavaScript

Introduction

In this tutorial, we'll explore one of the powerful features of the ES6 specification of JavaScript - the Spread Operator. Although the syntax is simple, sometimes the implementation is confusing if you do not understand it properly. In this tutorial, we'll demystify those three dots ... of JavaScript that does

Continue Reading