• Environments all contain references to their parent scope • Variables defined higher up the chain have a broader domain, but a lower priority • Namespaces are your friend.
• Environments all contain references to their parent scope • Variables defined higher up the chain have a broader domain, but a lower priority • Namespaces are your friend. • No really, namespace collisions are confusing and terrible
environment • methods are executed with the object their associated with as their default environment • .call() accepts arguments individually • .apply() accepts arguments as an array or array-like object
to number of named arguments (the function’s arity) • all arguments, even accounted ones are available in arguments object • unaccounted arguments can be discerned by using Array.slice with arguments’ as the context