Home  >  Article  >  Web Front-end  >  What does javascript mean?

What does javascript mean?

藏色散人
藏色散人Original
2021-09-01 14:57:0849649browse

Javascript is a high-level, interpreted programming language, mainly used to add interactive behaviors to HTML pages; JavaScript can also be directly embedded in HTML pages, but writing it as a separate js file is more conducive to structure and behavior separation.

What does javascript mean?

The operating environment of this article: Windows 7 system, JavaScript version 1.8.5, DELL G3 computer.

What does javascript mean?

JavaScript (often abbreviated to JS) is a high-level, interpreted programming language. JavaScript is a language based on prototypes and first-class functions. It is a multi-paradigm language that supports object-oriented programming, imperative programming, and functional programming. It provides syntax to manipulate text, arrays, dates, regular expressions, etc. It does not support I/O, such as network, storage and graphics, but these can be supported by its host environment. It has been standardized as a language by ECMA (European Computer Manufacturers Association) through ECMAScript [8]. It is used by most websites in the world and is also supported by the world's mainstream browsers (Chrome, IE, Firefox, Safari, Opera).

JavaScript and Java have many similarities in name or syntax, but the two programming languages ​​​​are very different from the beginning of their design. The language design of JavaScript is mainly influenced by Self (a prototype-based programming language) and Scheme (a functional programming language) [9]. In terms of grammatical structure, it has many similarities with the C language (such as if conditional statements, switch statements, while loops, do-while loops, etc.).

On the client side, JavaScript has been implemented as an interpreted language in the traditional sense, but more recently, it has been compiled for just-in-time (JIT) execution. With the latest HTML5 and CSS3 language standards, it can also be used for the development of games, desktop and mobile applications and running in server-side network environments such as Node.js.

Generally speaking, a complete JavaScript includes the following parts:

  • ECMAScript, which describes the syntax and basic objects of the language

  • Document Object Model (DOM), describes the methods and interfaces for processing web content

  • Browser Object Model (BOM), describes how to interact with the browser Interactive methods and interfaces

The basic characteristics of JavaScript are as follows:

  • is an interpreted scripting language (code Not precompiled).

  • Mainly used to add interactive behaviors to HTML pages.

  • It can be directly embedded in HTML pages, but writing it as a separate js file is beneficial to the separation of structure and behavior.

JavaScript is commonly used to complete the following tasks:

  • Embed dynamic text in HTML pages

  • Respond to browser events

  • Read and write HTML elements

  • Validate data before it is submitted to the server

  • Detect visitors’ browser information

  • Control cookies, including creation and modification

Recommended learning : "javascript basic tutorial"

The above is the detailed content of What does javascript mean?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn