The var keyword was JavaScript's first way to declare a variable. It's younger cousins, let and const, exploded onto the scene with ES6. If sticking to old norms is your thing, keep using var and leave these upstart keywords to listen to their terrible pop music and complain about their parents.

3m read timeFrom dev.to
Post cover image
Table of contents
You love tradition and spurn anything newYou prefer mutability, even when you don'tYou like leaky scopesThere must be a better way
1 Comment