Home  >  Article  >  Web Front-end  >  what is javascript

what is javascript

青灯夜游
青灯夜游Original
2019-05-16 15:12:556021browse

JavaScript is a literal scripting language, a dynamically typed, weakly typed, prototype-based language with built-in support for types. Its interpreter is called the JavaScript engine, which is part of the browser and is widely used in client-side scripting languages. It was first used on HTML (an application under Standard Universal Markup Language) web pages to add dynamic functions to HTML web pages. .

what is javascript

JavaScript is a scripting language that belongs to the Internet. It has been widely used in Web application development and is often used to add various dynamic functions to web pages. Provide users with a smoother and more beautiful browsing effect. Usually JavaScript scripts realize their functions by embedding them in HTML.

Characteristics of JavaScript

JavaScript script language has the following characteristics

1), scripting 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.

Daily uses of JavaScript

● Embed dynamic text in HTML pages.

● Respond to browser events.

● Read and write HTML elements.

●Verify data before it is submitted to the server.

● Detect the visitor’s browser information.

● Control cookies, including creation and modification.

● Server-side programming based on Node.js technology.

Related video tutorial recommendations: "javascript tutorial"

The above is the detailed content of what is 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
Previous article:What is vue architectureNext article:What is vue architecture