JavaScript

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
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

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