Home >Web Front-end >Front-end Q&A >In what year was JavaScript born?
Javascript was born in 1995. JavaScript was first designed and implemented in 1995 by Brendan Eich of Netscape on the Netscape Navigator browser; it was originally named LiveScript and was later renamed JavaScript after collaborating with Sun.
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 a dynamic scripting language based on prototype programming, multi-paradigm, and supports object-oriented, imperative and declarative (such as functional programming) style.
JavaScript was first designed and implemented on the Netscape Navigator browser in 1995 by Brendan Eich of Netscape. Originally named Mocha, it was renamed LiveScript in September 1995; in December of the same year, it was renamed JavaScript. At that time, the development alliance formed by Netscape and Sun wanted to make this language catch up with the "hot word" of Java, a programming language. It was temporarily renamed JavaScript, which later became one of the reasons why the public had many misunderstandings about the language
In November 1996, Netscape officially submitted the language standard to ECMA (European Computer Manufacturers Association). In June 1997, ECMA formulated the ECMAScript standard specification ECMA-262 based on the JavaScript language. JavaScript has become one of the most famous implementations of ECMAScript.
In addition, ActionScript and JScript are also implementation languages of the ECMAScript specification. Although JavaScript is promoted and advertised as a scripting language for non-programmers rather than as a scripting language for programmers, JavaScript is very rich in features.
Language composition
ECMAScript describes the syntax and basic objects of the language.
Document Object Model (DOM) describes the methods and interfaces for processing web content.
Browser Object Model (BOM) describes the methods and interfaces for interacting with the browser.
JavaScript script language has the following characteristics:
(1) Script language. JavaScript is an interpreted scripting language. Languages such as C and C are compiled first and then executed, while JavaScript is interpreted line by line during the running of the program.
(2) Based on objects. JavaScript is an object-based scripting language that can not only create objects but also use existing objects.
(3)Simple. The JavaScript language uses weakly typed variable types and does not impose strict requirements on the data types used. It is a scripting language based on Java's basic statements and controls, and its design is simple and compact.
(4)Dynamic. JavaScript is an event-driven scripting language that can respond to user input without going through a Web server. When visiting a web page, JavaScript can directly respond to these events when the mouse is clicked, moved up or down, or moved in the window.
(5) Cross-platform. The JavaScript scripting language does not depend on the operating system and only requires browser support. Therefore, after writing a JavaScript script, it can be brought to any machine for use, provided that the browser on the machine supports the JavaScript scripting language. JavaScript has been supported by most browsers. Unlike server-side scripting languages, such as PHP and ASP, 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.
As servers become more powerful, although programmers prefer scripts running on the server to ensure security, JavaScript is still popular for its cross-platform and easy-to-use advantages. At the same time, some special functions (such as AJAX) must rely on JavaScript to be supported on the client side.
For more programming related knowledge, please visit: Programming Video! !
The above is the detailed content of In what year was JavaScript born?. For more information, please follow other related articles on the PHP Chinese website!