Scope and Hoisting in ES6 JavaScript

MDN
5 min readFeb 25, 2020

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.

--

--