Intermediate JavaScript:
Scope

Description

When can you access a JavaScript variable? It depends on its scope. Let's discuss the various scopes a variable can occupy, including global vs local, functional vs lexical, private vs public. We'll also consider hoisting, this, bind/call/apply, fat and skinny arrows, and more.



Links



Comments

comments powered by Disqus