The basic characteristics of JavaScript: 1. An interpreted scripting language that can be interpreted line by line during the running of the program. 2. Based on objects, it can not only create objects, but also use existing objects. 3. Simple and compact design, easy to learn. 4. Dynamic. 5. Cross-platform, it does not depend on the operating system and only requires browser support.
The operating environment of this tutorial: 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 is the most popular scripting language on the Internet. This language can be used for HTML and the web, and can be widely used on servers, PCs, laptops, tablets, smartphones and other devices.
JavaScript is a lightweight programming language.
JavaScript is programming code that can be inserted into HTML pages.
JavaScript, when inserted into an HTML page, can be executed by all modern browsers.
JavaScript is easy to learn.
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. The 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. JavaScript has been 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.
Composition of JavaScript language
ECMAScript 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 the methods and interfaces for interacting with the browser.
[Related recommendations: javascript learning tutorial]
The above is the detailed content of What are the basic characteristics of javascript. For more information, please follow other related articles on the PHP Chinese website!