Home > Article > Web Front-end > What are the characteristics of JavaScript language
Characteristics of JavaScript language: 1. JavaScript is an interpreted scripting language; 2. An object-based scripting language; 3. It uses weakly typed variable types; 4. It uses events Driven script language; 5. Depends on the operating system and only requires browser support.
The operating environment of this article: windows7 system, javascript version 1.8.5, Dell G3 computer.
JavaScript ("JS" for short) is a lightweight, interpreted or just-in-time compiled programming language with function priority. Although it is famous as a scripting language for developing Web pages, it is also used in many non-browser environments. JavaScript is a dynamic scripting language based on prototype programming, multi-paradigm, and supports object-oriented, imperative and declarative (such as functional programming) style.
JavaScript script language has the following characteristics:
1. Script language.
JavaScript is an interpreted scripting language. Languages such as C and C are first compiled and then executed, while JavaScript is interpreted line by line during the running of the program.
2. Object-based.
JavaScript is an object-based scripting language that can not only create objects, but also use existing objects.
3. Simple.
The JavaScript language uses weakly typed variable types and does not impose strict requirements on the data types used. It is a scripting language based on Java's basic statements and controls. Its design is simple and compact.
4. Dynamic.
JavaScript is an event-driven scripting language that can respond to user input without going through the Web server. When visiting a web page, JavaScript can directly respond to these events when the mouse is clicked, moved up or down, or moved in the window.
5. Cross-platform.
JavaScript script language does not depend on the operating system and only requires browser support. Therefore, after writing a JavaScript script, it can be brought to any machine for use, provided that the browser on the machine supports the JavaScript scripting language. Currently, JavaScript is supported by most browsers.
[Recommended learning: javascript advanced tutorial]
The above is the detailed content of What are the characteristics of JavaScript language. For more information, please follow other related articles on the PHP Chinese website!