Home >Web Front-end >JS Tutorial >What are the characteristics of JavaScript language?

What are the characteristics of JavaScript language?

王林
王林Original
2021-07-09 14:44:232264browse

Javascript language has many characteristics, such as scripting language, object-based, simple, dynamic, cross-platform, etc. It is characterized by it. JavaScript is an interpreted, object-based scripting language.

What are the characteristics of JavaScript language?

#The operating environment of this article: windows10 system, javascript 1.8.5, thinkpad t480 computer.

Javascript language has the following characteristics:

Script language

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

Object-based

JavaScript is an object-based scripting language that can not only create objects, but also use existing objects.

Simple

The JavaScript language uses weakly typed variable types. There are no strict requirements for the data types used. It is based on Java basic statements and controls. Scripting language with a simple and compact design.

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.

Cross-platform

The 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. JavaScript has been supported by most browsers. [6] 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.

Free video tutorial recommendation: js video 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!

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
Previous article:What is let in javascriptNext article:What is let in javascript