Get the App
SLTechnology News&Howtos  ›  Development  › 

A complete JavaScript consists of several parts

Shulou Source: shulou.com Published: 2022-06-03 17:33:49 11月13日 Update

This article introduces the relevant knowledge of "a complete JavaScript consists of several parts". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

A complete JavaScript implementation consists of the following three different parts:

1. The core, the core of the language, describes the grammar and basic objects of the language.

2. Document object model, web document operation standard, and describe the method and interface of dealing with web page content.

3. The browser object model, the operation basis of client and browser window, and describe the method and interface to interact with the browser.

Web browsers are just one of the hosting environments for ECMAScript implementations. The hosting environment provides not only the basic ECMAScript implementation, but also a variety of extended functions.

The document object model is the application programming interface (API) of HTML. DOM maps the entire document to a tree node structure to facilitate quick access and manipulation by JavaScript scripts.

Core (ECMAScript)

ECMAScript, defined by ECMA-262, is an internationally accepted standard scripting language specification that has no dependency on Web browsers. The ECMA-262 standard mainly stipulates that the language consists of the following components:

Grammar

Variables and data types

Keywords and reserved words

Operator

Control statement

Object

ECMAScript version 5.0 was officially released in 2009. For a long time, javaScript was used according to the 5. 0 standard. In 2015, ECMAScript 6 released its official version, officially known as ECMAScript 2015. ECMAScript defines all the properties, methods, and objects of the scripting language. Therefore, when using web client script coding, you must follow the ECMAScript standard.

Document object Model (DOM)

DOM (document object Model) is the application program interface (API) of HTML and XML. DOM will plan the entire page into a document at a node level. Each component of a HTML or XML page is some type of node, which in turn contains a different type of data.

Browser object Model (BOM)

IE 3.0 and Netscape Navigator 3.0 provide a feature, BOM (browser object Model), to access and manipulate browser windows. With BOM, developers can move windows, change the text in the status bar, and perform other actions that are not directly related to the content of the page.

This is the end of the content of "A complete JavaScript consists of several parts". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Object browser browser document Model part Standard language content Interface script Node method Core Type Page different client client Host Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Shulou Technology OPPO Reno vpn Shulou Tech Info