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 ...
seuncaleb.hashnode.dev4 min read
shuo yang
show me the code
In the last picture from Pinterest, Why let/const cann't be global scoped?
Top-Level let/const can declare global variables