Home  >  Article  >  Web Front-end  >  JavaScript is the language that runs in

JavaScript is the language that runs in

青灯夜游
青灯夜游Original
2021-10-14 15:00:488167browse

Javascript is a scripting language that runs on the "client". JavaScript does not require compilation and is an interpreted scripting language; and JavaScript was originally designed to be used on browsers. The browser is a type of client, so JavaScript is called a client-side scripting language.

JavaScript is the language that runs in

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 based on prototype programming, a multi-paradigm dynamic scripting language, and supports object-oriented, imperative, declarative, and functional programming paradigm.

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.

Earlier, JavaScript was generally a scripting language executed on the client (browser). Therefore, JavaScript is usually called a client-side scripting language.
First of all, JavaScript is a scripting language. The so-called script language does not need to be compiled and is an interpreted language.

Secondly, JavaScript was used on browsers when it was originally designed. The browser is a type of client, so JavaScript is called a client-side scripting language.

Currently, JavaScript is no longer limited to use on the client side. JavaScript language can also be used on the server side, such as servers built with Node.js. Even JavaScript can be used to develop hardware programming. Therefore, although JavaScript is called a client-side scripting language, it does not mean that it can only be used on the client side, it is just a customary name.

[Recommended learning: javascript advanced tutorial]

The above is the detailed content of JavaScript is the language that runs in. 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