Home > Article > Web Front-end > What three parts does javascript consist of?
JavaScript consists of three parts: ECMA scripting language core (ES): language foundation Document Object Model (DOM): interacts with HTML and XML documents Browser Object Model (BOM): controls the browser environment
The three parts of JavaScript
As a scripting language, JavaScript consists of the following three parts:
1. ECMA Scripting Language Core (ES)
This is the core part of JavaScript, which defines the syntax, data types, operators, control flow statements and functions of the language. The ES standard is developed by ECMA International, so it is also called ECMAScript (ES).
2. Document Object Model (DOM)
DOM is an interface that allows JavaScript to access and manipulate HTML and XML documents. It provides methods to interact with browser document elements, such as getting, adding, removing, and modifying elements.
3. Browser Object Model (BOM)
The BOM is a set of objects that allow JavaScript to access and control the browser environment. It provides methods for manipulating windows, navigation, timers, and other browser features.
The relationship between components
These three parts work together to enable JavaScript to create interactive web pages and applications. The ES core provides the language foundation, the DOM allows JavaScript to interact with documents, and the BOM provides control of the browser environment.
The above is the detailed content of What three parts does javascript consist of?. For more information, please follow other related articles on the PHP Chinese website!