What does const stand for in ES6?

Lot of changes are happening in JavaScript. ES6 shifted standard of JavaScript language to one level up. const is one of the concept ,that is introduced as apart of ES6 standard. Those, who came from the C or Java , they have different meaning for this. const in JavaScript means “one-time assignment” . It doesn’t mean constant. It means you can assign the a variable or object once. But doesn’t mean immutable. The immutable concept require explanations. We will understand in below examples.

0
Read More

What is Events and EventEmitter in Node.js

Let’s discuss some of the core concepts of Node.js. It is a very short post, but it is very important, if you want to play around with Node.js. It will give you a fair amount of idea how the activity is raised and handled by this fascinating coding language. Let’s jump into the topic. Any kind of activity or action taking place in the computer world are called an event. Some of the examples of the event are like the…

0
Read More
feature image

What is Behavior Driven Development ?

In continuously evolving IT world, we are introduced to new technology and new approaches to learning every day. These new technologies and approaches make life easy and create a better life for developers,   Tester, Business Analyst etc. Behaviour Driven Development is the result of change and innovation in the IT world. Let’s learn about BDD today, Behaviour Driven Development (BDD) is a software development approach which is evolved from the Test Driven Development (TDD) approach. In Test Driven Development, the…

0
Read More
Node callback

What is Callback in Node.js?

A lot of people get confused with the callback concepts. Here is the small topic to make you understand about the callback and uses Node world. It is very simple. Due to this feature, Node.js has captured the market so fast. Let’s discuss. In Synchronous programs, the code executes line by line. After finishing the execution of the current line, then moves to the next line. If any line contains a method which takes time to execute (it might be I/O…

1
Read More

FTP deployment to or update a website using Gulp

This post is about getting familiar with the few of the Gulp operations and FTP deployment to a web server using it. As a developer, we have some challenges to manage the process of development and deployment to a different server. There are few of the techniques in Gulp, which can handle your hectic tasks pretty easily and make our life easy in the developments. When we try to develop the new application or update a legacy application, we need…

0
Read More

Use of console.time() and console.timeEnd() method in javascript

Sometimes we wonder about some code, we have just written, how it is performing. In JavaScript, we have a console object. This console object can provide you answer on performance. Console object has two methods named as time() and timeEnd(). These two methods take requires a string argument, which will name of the timer. It is generally used at the time of testing the code. Below is the syntax: For Example, We want to test a portion of a code…

0
Read More

Chat application using Node.js

Some point in time, while using social platforms we think how this chat window works. It is pretty simple. Here is sample demo application which will show how the chat window works in Node.js. We will be using the socket.io module for communication between chat windows. You can read about the ‘socket.io’ from https://socket.io/ .   Node.js: It should be installed. Express js: As it is a web application we will require the express module. if you want to read…

0
Read More

How to execute jar file using node js child_process

Many of the situation we need to interact with the other programs. Here is a small demo on how to invoke or execute the jar. In Node js, the “child_process” is the module which will do the needful. Through chlid_process, we can execute OS command. Here have used one java program which takes input from the command line and prints the value which is in command line execution. Below is the java program we have used. We will create an…

2
Read More
mysql-db

Insert multiple/bulk records into mysql DB using node.js

Some cases we get requirements for bulk data insertion to MySQL database. It is a simple process. In this tutorial, we will learn about how to handle multiple rows or arrays of data insertion. Below are the steps to guide archive the target.   Node Js: It should be installed in your system. Below are the processes to set up the project, 1. Create project folder(here it is “mysql-bulkinsert-opration”) 2. Navigate to the folder using the command line (cmd)

4
Read More
log-error

Design custom logger for node js appilication

When designing a web application, we require some information need to be captured. It may be for future reference and analysis to find the root cause of some issue. Designing the Logging module intelligently will help these activities in future. Here we will talk about simple custom logging technique, which you can use and customize as per your requirement of logging. Node Js: It should be installed in your system. express-generator: You need to install express-generator, this will help you…

0
Read More