malliktalksjava.com
ES6 variable declaration – let and const
In standard Javascript, the only way to declare a variable in JavaScript was to use the keyword var. But, in ES6 there are now two new ways to declare variables in JavaScript: let and const. let an…