Ever got tired of how weird functions (and everything else) work weird in JavaScript? Well, get used to it, cuz we got a long way ahead, but stuff’s getting better, and the functions’ improvements are one of the things we can have a toast to.
Here’s a mind blowing piece of information: const
comes from “constant”. You’re welcome. Now let’s dive into more details on how to use it and it’s behaviours so that you don’t get fooled by thinking it should be used only to things that are immutable.
This is the first of a series of short posts on ES2015 (aka ES6). Starting from the basics, we’ll explore in a practical and objective manner how to use let
.