There are three main components of JavaScript: Core (defines the language foundation), Document Object Model (DOM, accesses and controls HTML documents), and Browser Object Model (BOM, accesses and controls browser windows and functions) .
The three main components of JavaScript
JavaScript is a dynamic programming language that contains three main components Part:
1. Core
The core is the foundation of JavaScript and defines the basic functions of the language, including:
The core part provides the foundation of the programming language , allows developers to create and manipulate data structures and perform calculations.
2. Document Object Model (DOM)
DOM is an application programming interface (API) of JavaScript that allows scripts to access and control various parts of the HTML document . Through the DOM, developers can:
DOM is the cornerstone of building interactive web pages.
3. Browser Object Model (BOM)
BOM is another API of JavaScript that allows scripts to access the browser window and its functionality. Through the BOM, developers can:
BOM provides developers with the ability to control the browser environment and create cross-platform applications.
The above is the detailed content of What are the three major parts of javascript?. For more information, please follow other related articles on the PHP Chinese website!