Home >Web Front-end >Front-end Q&A >JavaScript is the language that runs in
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.
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!