Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is Javascript called Javascript, if it has nothing to do with Java? [duplicate]

Since JavaScript is not derived from Java, why does it have "Java" in the name?

like image 334
Matthew Avatar asked Jan 07 '10 06:01

Matthew


People also ask

Why is JavaScript called JavaScript if it has nothing to do with Java?

JavaScript vs.The name JavaScript came from Netscape's support of Java applets within its browser. Many say it was also a marketing tactic to divert some attention from Java, which was the most buzzed-about language at the time. To run Java programs, the code must be first compiled into an executable form.

Why was LiveScript renamed JavaScript even though its functionality had nothing to do with Java?

The LiveScript to JavaScript name change came because Netscape and Sun did a license agreement. The language was then submitted for standarization to the ECMA International Organization. By that time, Netscape didn't allow the use of the "JavaScript" name, so the standarized language is named ECMAScript.

Why JavaScript name is similar to Java?

Explanation: Javascript and Java has similar name because Javascripts syntax is loosely based on Java's syntax. Javascript is not the stripped down version of Java and Java and Javascript are originated from Island of Java also wrong. So, option (A) is correct.

Why is JavaScript not Java?

Java is an OOP programming language while Java Script is an OOP scripting language. Java creates applications that run in a virtual machine or browser while JavaScript code is run on a browser only. Java code needs to be compiled while JavaScript code are all in text. They require different plug-ins.


1 Answers

From an interview made to its creator Brendan Eich:

InfoWorld: As I understand it, JavaScript started out as Mocha, then became LiveScript and then became JavaScript when Netscape and Sun got together. But it actually has nothing to do with Java or not much to do with it, correct?

Eich: That’s right. It was all within six months from May till December (1995) that it was Mocha and then LiveScript. And then in early December, Netscape and Sun did a license agreement and it became JavaScript. And the idea was to make it a complementary scripting language to go with Java, with the compiled language.

like image 88
Christian C. Salvadó Avatar answered Nov 15 '22 08:11

Christian C. Salvadó