Javascript is a scripting language that runs on the client (browser). Javascript is a prototype-inherited object-oriented dynamic type case-sensitive client-side scripting language. Its main purpose is to solve the speed problem left by server-side languages and provide customers with a smoother browsing effect.
The operating environment of this tutorial: windows7 system, javascript version 1.8.5, Dell G3 computer.
Javascript is a prototype-inherited, object-oriented, dynamically typed, case-sensitive client-side scripting language developed from Netscape's LiveScript. The main purpose is to solve the speed problem left by server-side languages. Provide customers with a smoother browsing experience.
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.
The main features of JS:
The language is similar to those common high-level languages, such as C and Java;
Script language, which can be run directly by the interpreter without compilation;
Variables are loosely defined and are weakly typed languages;
Object-oriented
#JS was originally designed specifically for web development, and is now also an important language for web development. It supports operations on browsers (Browser Object Model, BOM) and HTML documents (Document Object Model, DOM), making web pages present dynamic interactive features.
Strictly speaking, JS is just an implementation of ECMAScript. It is a Web development technology composed of ECMAScript, BOM, and DOM.
For more programming-related knowledge, please visit: Introduction to Programming! !
The above is the detailed content of What language does javascript run on?. For more information, please follow other related articles on the PHP Chinese website!