In JavaScript, Developers wanted block level scoping of variables only within for loop, where the temporary incremental variable is only to be used inside the loop. This blog explains let & const in Block level binding in Loop (for, for in, for of) compare to var.
Tag: let
Difference between ‘var’, ‘const’ & ‘let’ keywords | Understanding ES6
Understanding ES6, JavaScript is a superset of ECMAScript 6. In this article I will explain the main datatypes ES6 has included in its palate and will explain the difference between var, let and const datatypes.