Home>Article>Web Front-end> What kind of scripting language is javascript?
Javascript is a high-level, interpreted programming language. It is a language based on prototypes and first-class functions. It is also a multi-paradigm language. It supports object-oriented programming, imperative programming, and Functional programming.
The operating environment of this article: windows7 system, javascript version 1.8.5, Dell G3 computer.
What kind of scripting language is javascript?
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. 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, complete JavaScript includes the following parts:
ECMAScript, which describes the syntax and basic objects of the language
Document objects Model (DOM), describes the methods and interfaces for processing web content
Browser Object Model (BOM), describes the methods and interfaces for interacting with the browser
Basic characteristics of JavaScript As follows:
is an interpreted scripting language (the code is not precompiled).
Mainly used to add interactive behaviors to HTML pages.
Can be directly embedded into HTML pages, but writing it as a separate js file is beneficial to the separation of structure and behavior.
JavaScript is commonly used to accomplish the following tasks:
Embed dynamic text in HTML pages
Respond to browser events
Read Write HTML elements
Validate data before it is submitted to the server
Detect visitor's browser information
Control cookies, including creation and modification
Recommended study: "javascript video tutorial"
The above is the detailed content of What kind of scripting language is javascript?. For more information, please follow other related articles on the PHP Chinese website!