JavaScript is a literal-translation scripting language , which is a dynamic type, a weak type, a prototype-based language, and a built-in support type.
Its characteristics:
1) JavaScript is an interpreted scripting language, C, C + +, and other languages are compiled and executed, and JavaScript is interpreted on a row-by-line basis in the course of a program's operation.
2) Object-based. JavaScript is an object-based scripting language that allows you to create objects and use existing objects.
3) Simple. The JavaScript language uses weakly typed variable types, which are not strictly required for the data types used, and are based on the Java Basic statement and Control scripting language, and its design is simple and compact.
4) Dynamic nature. JavaScript is an event-driven scripting language that does not require a Web server to respond to user input. When you visit a webpage, the mouse clicks or moves up and down the page, and the window moves, and so on, JavaScript can respond directly to these events.
5) Cross-platform. The JavaScript scripting language is not dependent on the operating system and requires only browser support. So a JavaScript script can be used on any machine after it is written, provided the browser on the machine supports the JavaScript scripting language, and JavaScript is now supported by most browsers.
The use of JavaScript has the following points:
1) Embed dynamic text in HTML pages.
2) respond to browser events.
3) control of cookies, including creation and modification.
4) detect the visitor's browser information.
Talking about JavaScript