Home  >  Article  >  Web Front-end  >  What kind of scripting language is JavaScript?

What kind of scripting language is JavaScript?

青灯夜游
青灯夜游Original
2022-02-18 17:09:213137browse

JavaScript is a client-side scripting language. JavaScript is a prototype-inherited, object-based, dynamically typed, case-sensitive client-side scripting language. Its main purpose is to solve the speed problems left by server-side languages ​​and provide customers with smoother browsing effects.

What kind of scripting language is JavaScript?

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

JavaScript is a prototype-inherited object-based dynamic type case-sensitive client-side scripting language developed from Netscape's LiveScript. The main purpose is to solve server-side languages, such as Perl, legacy speed issues, provide customers with smoother browsing.

At that time, the server needed to verify the data. Since the network speed was very slow, only 28.8kbps, the verification step wasted too much time. So Netscape's browser NavigaTor added Javascript to provide basic functions of data verification. The role of js is also mainly to realize some special effects that are difficult to achieve with CSS on web pages. It is usually used in conjunction with jQuery and Ajax.

JavaScript is a scripting language widely used in client-side Web development. It is often used to add dynamic functions to HTML (a subset of Standard Universal Markup Language) web pages, such as responding to various user operations.

You can use JavaScript to do:

1. Embed dynamic text in HTML pages.

2. Respond to browser events.

3. Read and write HTML elements.

4. Verify data before it is submitted to the server.

5. Detect the visitor’s browser information. Control cookies, including creation and modification.

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

How to run JavaScript

As a scripting language, JavaScript code cannot run independently. Usually we need to use a browser to run JavaScript code. All web browsers All support JavaScript.

In addition to being executed in the browser, JavaScript code can also be executed on the server or in a device equipped with a JavaScript engine. The reason why the browser can run JavaScript code is because the JavaScript engine is embedded in the browser. , common JavaScript engines are:

  • V8: JavaScript engine in Chrome and Opera;

  • SpiderMonkey: JavaScript engine in Firefox;

  • Chakra: JavaScript engine in IE;

  • ChakraCore: JavaScript engine in Microsoft Edge;

  • SquirrelFish: The JavaScript engine in Safari.

[Related recommendations: javascript learning tutorial]

The above is the detailed content of What kind of scripting language 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