Three Sisters [var, let, const]
When I first got introduced to JavaScript, one of my many challenges was deciding what to use when declaring a variable. Initially, I’d use var a lot, and then I started using const almost as much; let and I weren’t so close then. So today, I’ll be ...
·4 min read·seuncaleb.hashnode.devRead the article
shuo yang
In the last picture from Pinterest, Why let/const cann't be global scoped?
Top-Level let/const can declare global variables