Var vs let vs const in JavaScript
The next post in our X vs Y vs Z series is var vs let vs const. I’ve wanted to cover this for a little while. Let and const were added to JavaScript with ECMAScript 6. Var has been around a bit longer. Var is used to declare a function-scoped or globally-scoped variable. Var declarations …
Continue reading "Var vs let vs const in JavaScript"