Difference between var, const and let
There are 3 ways to declare a variable in Javascript: using one of the keywords var, const or let. Prior to ES6, var used to be the only way to declare a variable. You had no other choice. However, it had some weird and unexpected behavior, which oft...
May 6, 20203 min read38
