5. Global environment
So far, we have discussed JavaScript keywords, a few essential functions, and the concepts of scope and environment. What is the global environment and what does it contain? The answer depends on the particular implementation of JavaScript.
In a browser, JavaScript runs in a restricted environment for security reasons. Allowing JavaScript in your browser means allowing code written in unknown locations to run in your browser and therefore on your computer. There have been countless attacks where such code has stolen sensitive files, sent spam, inspected a company's internal network, or spied on other JavaScript code to find credit card numbers or passwords. Browsers have made great efforts to limit these risks and, as a result, provide libraries with limited functionality: it is therefore not possible for a JavaScript program running in a browser to read the user's...
Exclusive to subscribers. 97% yet to be discovered!
Already subscribed? Log in!
Global environment
Article included in this offer
"Traceability"
(
56 articles
)
Updated and enriched with articles validated by our scientific committees
A set of exclusive tools to complement the resources
Bibliography
- (1) - SELF UNGAR (D.), SMITH (R.B.) - Self : The Power of Simplicity. - OOPSLA '87 Conference Proceedings, pp. 227-241, Orlando, FL, October 1987
Standards
- ECMAScript® 2016 language specification - ECMA-262 - 2016
- IEEE Standard for the Scheme Programming...
Exclusive to subscribers. 97% yet to be discovered!
Already subscribed? Log in!