Scope and Hoisting in ES6 JavaScript

Since 2015 Developers implemented a convention called ES6 to better use Javascript code; two ways this has changed is though hoisting and scope.

SCOPE

Scope is what’s available, or the resources one has access to, in any execution of code. When looking at scope, the easiest way to see it in action is through the assignment of variables.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store