global scope

Deliberate Scope in Web Applications

Web applications can be divided into two general categories, depending upon the scope to be implemented in their design and development. Global scope means that the program will draw upon and update an overall state, which can be referenced from anywhere within the program. Examples may include applications that remember the identity of the user, or generally remember notifications. Lexical scope (or block scope) indicates more modularity in the program; functions in the program wuill generally be self-contained and will operate upon data they are provided, not upon external data.