The difference between let and var in JavaScript

added by DotNetKicks
1/26/2015 4:24:48 AM

3 Kicks, 404 Views

As you may be aware, let is a new keyword in ECMAScript 6. While let works very much like var, there is one major difference. This article (a quick one) explains the difference between these two keywords in JavaScript.