Friday, April 10, 2020
The prototype is an object that is associated with every functions and objects by default in JavaScript, where function's prototype property is accessible and modifiable and object's prototype property (also known as attribute) is not visible. JavaScript is a dynamic language, in which we can add new properties to the objects at any time. Let us see an example: https://gist.github.com/th3snehasish/eb25168a89f4776a697224f343188a1b
Module in Node.js is a simple or complex functionality organized in single or multiple JavaScript files that can be reused throughout the Node.js application. Each module in Node.js has its own context, so it cannot interfere with other modules or pollute the global scope.  It is also a good practice to arrange the codes in such a way that makes it more manageable and...
If you are already working on some Node.js projects using Express.js framework, you might have heard of the term Middleware many times. In this article we will cover What is a middleware in Node.js and how to use it. A middleware is basically a function that will the receive the Request and Response objects, just like your route Handlers do. As a third argument...

Subscribe to our newsletter

Popular posts