Home  >  Article  >  Web Front-end  >  What are the technical characteristics of javascript

What are the technical characteristics of javascript

醉折花枝作酒筹
醉折花枝作酒筹Original
2021-07-15 14:17:324094browse

The technical characteristics are: 1. It is an interpreted scripting language; 2. It is an object-based scripting language; 3. It uses weakly typed variable types; 4. It uses events. Driven script language; 5. Does not depend on the operating system, only requires browser support.

What are the technical characteristics of javascript

The operating environment of this tutorial: windows7 system, javascript version 1.8.5, Dell G3 computer.

JavaScript script language has the following characteristics:

(1) Script language. JavaScript is an interpreted scripting language. Languages ​​such as C and C are compiled first and then executed, while JavaScript is interpreted line by line during the running of the program.

(2) Based on objects. 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, and its design is simple and compact.

(4)Dynamic. JavaScript is an event-driven scripting language that can respond to user input without going through a 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 scripting 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.

Unlike server-side scripting languages, such as PHP and ASP, JavaScript is mainly used as a client-side scripting language to run on the user's browser and does not require server support. Therefore, in the early days, programmers preferred JavaScript to reduce the burden on the server, but at the same time it also brought about another problem: security.

Daily uses of JavaScript:

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 visitor’s browser information.

Control cookies, including creation and modification.

Server-side programming based on Node.js technology.

[Recommended learning: javascript advanced tutorial]

The above is the detailed content of What are the technical characteristics of javascript. 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