JavaScript

module.exports in Javascript – Node JS, Express

Module.exports is used with creating new module in javascript. Certain functionality of the app can be moved to a separate module. And it can... Read more »

How to print module details in Node JS

Module details can be logged using some code in the node app. Here is the code to log the module details in the console.... Read more »

var, let , const in Javascript – Scope of Variables

var, let and const are used to store values. The scope these data types are little different. So we gonna check that out in... Read more »

EJS Templating – Sample Express Task Listing App

In this post we gonna learn basics of EJS templating for Express JS App. We gonna code a task listing app for the current... Read more »

Display Current Day Name in Javascript – Node, Express, EJS

Print present day's name like Sunday, Monday in javascript app. Display the day name from the date library. In this post we also share... Read more »

Using EJS with Express – Installation, Boilerplate Code

EJS refers to Embedded Javascript. It is basically used for templating the javascript app. In this post, we gonna check out the basic express... Read more »

Node Express JS App Boiler Plate Code

Boilerplate code for easily getting started with a new express js project. Here is the sample code you can use for the app.js, the... Read more »

Create JSON Data for POST request in Express

JSON refers to the JavaScript Object Notation. Data can be transferred over HTTPS as JSON. For this process firstly we need to convert our... Read more »

Specify Static Folder in Express JS

Static folder is used for keeping all the static files like css files, images etc. In express JS we mention the static folder in... Read more »

New Node JS Project Setup – Terminal Commands

Firstly open the terminal and go to our folder location. Create folder: eg: mkdir FruitsProject Move inside the folder using, cd FruitsProject Create entry... Read more »