In a folk language, region and context have much in common. That's why I get embarrassed when I read links to both, for example, in a quote from an article about closing:
The scope refers to where variables and functions are available, and in what context it is executed. ( @robertnyman )
As far as I can tell, context is just a reference to an object.
Can someone explain what exactly context is , as used, for example, in jQuery syntax, $(selector, context) . And is the object the same scope in it?
Update:
I found this interesting article that talks about scope and context in JavaScript.
http://www.digital-web.com/articles/scope_in_javascript/
javascript scope jquery definition
dkinzer
source share