Environment (Definition)

The environment is the computing context in which the script is executed.

There are a variety of different environments in which a script may be executed. At the time of writing, a JavaScript script could be operating in any of these distinctly different environments:

Each of these has certain advantages and constraints. Most offer special facilities native and unique to that hosting environment.

In general, you should be able to determine which of these environments you are operating in. However, there is no standardized way to detect this at present.

There may be range limits on values in certain environments and certainly there will be 'bugs' in the implementations that are platform specific. It is also very likely that functionality will be more or less incomplete in some environments - mostly depending on the maturity of the implementation.

See also:Character display semantics, Character set, Execution environment, Host environment, Limits, Script termination


Wrox Instant JavaScript - page - 5