Skip to content

Instantly share code, notes, and snippets.

@KaraAJC
Last active August 7, 2017 21:59
Show Gist options
  • Save KaraAJC/fd45c4bec7ab1c048fcae500f347a2a0 to your computer and use it in GitHub Desktop.
Save KaraAJC/fd45c4bec7ab1c048fcae500f347a2a0 to your computer and use it in GitHub Desktop.
Hoist

Intro:

Started Prepping students to understand Front End Javascript environment by introducing ESLint, NPM, Babel, and ES6. In introducing the concept of classes, I wanted to make sure there was an understanding of hoisting which took me on a serious rabbit hole of reading! My goal is to be able to explain hoisting, by better understanding the execution context.

Resource Links:

JS Factory functions vs constructor functions vs classes

Classes and prototypal inheritance

MDN: Classes

MDN: Hoisting

Execution Context

JS Execution context and the lexical environment

scope and context

// examples will go here!
// Examples to explore: declaration vs execution
// memory management and call stack
// scope & context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment