Arrow functions in Javascript

In ECMAScript 2015 , also known as ES6 , many new features were introduced. One of the feature which get introduced was “Arrow Functions”. /********* Traditional way *************/ var func1 = function old(x,y) { return x+y; } /************* New way...

Closure in Javascript

Closures is concept functions have access to variables that were available in the scope where the function was created. To understand it fully below are the set of examples which will help you to understand: var Car = function(model){ this.model = model; // member...

Objects in javascript for beginners

Objects in JavaScript, just as in many other programming languages, can be compared to objects in real life.In JavaScript, an object is a standalone entity, with properties and type. A JavaScript object has properties associated with it. A property of an object can be...