ES6: var, let and const – The battle between function scope and block scope

In the pre-ES6 era, there was only one way of declaring variables in JavaScript — being the usage of var. var has always had this special aura of misconception — this probably because of how the behaviour of variables declared with var distinguishes from… Read more

Similar