Skip to main content

Home/ Web Development Resources (originated at GA WDI)/ Group items tagged context

Rss Feed Group items tagged

John Randall

Understanding Scope and Context in JavaScript | Ryan Morr - 0 views

  • Every function invocation has both a scope and a context associated with it. Fundamentally, scope is function-based while context is object-based. In other words, scope pertains to the variable access of a function when it is invoked and is unique to each invocation. Context is always the value of the this keyword which is a reference to the object that “owns” the currently executing code.
1 - 1 of 1
Showing 20 items per page