History and Versions
ECMAScript specifies the JavaScript language. A runtime implements language features and provides host APIs; an edition name alone does not prove support for a particular feature.
Check the feature you need in the environment where your program must run.
See the mechanism
syntax + language semantics + built-insFollow one example
This editor runs in a Web Worker. Promise is a language built-in, while fetch and document are host facilities. A worker commonly provides fetch but no page document. A browser page and Node can provide different capabilities despite implementing the same language syntax. Annual ECMAScript editions describe standardized language changes; proposals, transpilation and runtime support are related but distinct concerns.
Predict, change and check
Predict: Would seeing Promise support prove that document.querySelector is available too?
Test your explanation: Run the same inspections in a page console and a local Node process, noting the host. Before adopting a feature, check its specific compatibility information and the project’s target versions; do not infer support from an edition label.
The tasks below ask you to explain that result and apply the idea to different inputs.
Apply and distinguish
Specification, implementation and history
JavaScript first appeared in Netscape in 1995; ECMAScript became a standardized language specification in 1997. ES2015 introduced a substantial set of features, followed by annual editions. Those milestones describe language history, not a promise that every device supports every feature from an edition. A proposal is not automatically a supported feature, and transpiling syntax does not automatically provide missing runtime APIs.
For a product supporting older devices, list the actual features it needs and test those in its target environments. Check the feature's compatibility data and the project's declared target versions. Record the difference between an engine feature such as arrow syntax and a host feature such as a page document. Do not infer that an environment is a browser page just because it implements modern ECMAScript.
Check your understanding: State the input contract, identify the operation that changes the result, and give one boundary input that would distinguish the correct rule from the mistake described above.