Learn the basics of variable scope in javascript
In javascript, there are three types of scope: global, function, and block.
Prior to ES6, javascript only had global and function scope, so let's start with those two examples.
Function Scope
When a function is created that function creates its own...
garyditsch.hashnode.dev3 min read