Home > Web Front-end > Front-end Q&A > JavaScript is the language that runs in

JavaScript is the language that runs in

青灯夜游
Release: 2021-10-14 15:00:48
Original
8286 people have browsed it

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!

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template