Home  >  Article  >  Web Front-end  >  What is the predecessor of javascript

What is the predecessor of javascript

青灯夜游
青灯夜游Original
2021-10-19 17:48:324639browse

LiveScript, the predecessor of javascript. JavaScript was originally called LiveScript and was designed and developed by Brendan Eich of Netscape in 1995; later Netscape cooperated with Sun and renamed it JavaScript.

What is the predecessor of javascript

The operating environment of this tutorial: windows7 system, javascript version 1.8.5, Dell G3 computer.

LiveScript, the predecessor of javascript.

JavaScript was first designed and implemented in 1995 by Brendan Eich of Netscape Company on the Netscape Navigator browser.

JavaScript was originally called LiveScript, but was renamed JavaScript after Netscape partnered with Sun (an Internet company known as "Sun Microsystems", now acquired by Oracle).

The reason why LiveScript was renamed to JavaScript is because JavaScript was designed inspired by Java, so they have many similarities in syntax. Many naming conventions in JavaScript are also borrowed from Java, and also One reason is for marketing and to ride on the popularity of Java.

During the same period, Microsoft and Nombas (a company called Nombas) also developed two scripting languages, JScript and ScriptEase respectively, forming a tripartite confrontation with JavaScript. There is no unified standard between them and they cannot be used interchangeably. In order to solve this problem, in 1997, under the coordination of ECMA (European Computer Manufacturers Association), Netscape, Sun, Microsoft, and Borland (a software company) formed a working group and developed the ECMA-262 standard based on JavaScript. (ECMAScript).

The following year, ISO/IEC (International Organization for Standardization and International Electrotechnical Commission) also adopted ECMAScript as a standard (ie ISO/IEC-16262).

Characteristics of JavaScript

1. Interpreted scripting language

JavaScript is an interpreted scripting language. It needs to be compared with languages ​​such as C and C first. Different from compiling and then running, code written in JavaScript does not need to be compiled and can be run directly.

2. Object-oriented

JavaScript is an object-oriented language. Using JavaScript, you can not only create objects, but also operate and use existing objects.

3. Weak type

JavaScript is a weakly typed programming language that does not have strict requirements on the data type used. For example, you can initialize a variable to any type, or you can initialize it at any time. Change the type of this variable.

4. Dynamic

JavaScript is an event-driven scripting language that can respond to user input without the help of a Web server. For example, when we visit a web page , when you click on a web page with the mouse or scroll the window, you can directly respond to these events through JavaScript.

5. Cross-platform

JavaScript does not depend on the operating system and can run in the browser. Therefore, after a JavaScript script is written, it can be run on any system, as long as the browser on the system supports JavaScript.

Main functions

1. Embed dynamic text in HTML pages.

2. Respond to browser events.

3. Read and write HTML elements.

4. Verify data before it is submitted to the server.

5. Detect the visitor’s browser information. Control cookies, including creation and modification.

6. Server-side programming based on Node.js technology.

[Recommended learning: javascript video tutorial]

The above is the detailed content of What is the predecessor of javascript. 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