Most of the freshers become confused about landing on ES6 from ES5. Even when I started learning the features of ES6, I thought that es5 was better. After some days, it came to my percipience that how es6 made js developers' life easier. So let’s play with es6 and gain some immense pleasure.

Block Bindings, Hoisting (let vs const vs var)

At first, we have to face the two new words let and const. You may have heard to give up var and start using let and const. Why? what’s the problem with var? You have already introduced with function scope and block scope. Simply block scope is nothing but wrapping everything under curly braces. Var and let, const perform under function scope and block scope respectively......

Read this article on Medium