JavaScript let vs var: Complete Guide
The let and var, both keywords are used to declare a variable in JavaScript. So now the question arrives what the difference between them is. So before the ES6 release, JavaScript only had the “var” keyword to declare variables. JavaScript let vs var The main difference between let vs var in JavaScript is that the let … Read more