Javascript

Object methods in JavaScript

Object methods in JavaScript

Ashish Lahoti

This post describes the usage of various Object methods like Object.create(), Object.assign(), Object.freeze(), Object.seal() and many more available in JavaScript with examples.

Difference between var, let and const

Difference between var, let and const

Ashish Lahoti

A nice feature addition in ES2015 (ES6) was the introduction of let and const keywords for variable declaration. You can use var, let and const keyword interchangeably for variable declaration though it makes a difference in terms of their scope, usage and hoisting. If you are not aware of these differences then please continue to read…