Errors occur when something went wrong, during the Program execution. There are different types of errors and these should be handled properly in the program to avoid abnormal program termination. Node.js provides different ways to handle the errors generated while running the Applications in Node.js run-time environment. We can handle the errors using try..catch constructs, […]
Node.js – Console module – A simple debugging console
We have discussed in our previous article “Node.js – Modules – A brief discussion” that, Node.js provides core modules and one of the core modules is the Console module which provides a simple debugging console. To use the core module functionality, we no need to import the module using require method. Core modules are built-in […]
Node.js – Events – A brief discussion
As discussed in our previous article, “Node.js – An Introduction“; it uses a Single Thread Event model to handle concurrent client requests. That said, Node.js supports an event-driven model to handle the requests. Some kind of objects periodically issues the events, and some objects will listen to these events. The objects that emit the events […]
Node.js – Modules – A brief discussion
A module is nothing but a file in Node.js. Yes, what you read is correct. For example, if you write your own code in a file; sample.js, Node.js treats this one as a module. If you want to use the code written in your file in another file or module; you need to use require […]
Node.js – Setting up development Environment
Through this Article, we are going to discuss setting up Node.js development Environment. Step 1. Go to Node.js website and download the Node.js software which is suitable to your Operating System. For Windows you will see an installer to enable to ease the installation. Step 2. Once it is downloaded, start installing it; follow the default […]
Node.js – An Introduction
Node.js is an Open Source JavaScript run-time environment that allows to run JavaScript code. It provides cross-platform run-time environment. It was originally developed by Ryan Dahl in the year 2009. We can use Node.js in developing Single page Web applications to High performance applications. Main focus of Node.js is to create highly performance applications. Unlike […]