Differences between Java, JavaScript, and JScript

Source: Internet
Author: User

Differences between Java, JavaScript, and JScript


Source: Author: Source: qiaoqiao

Today, I saw some people on the internet asking about the difference between JavaScript and JScript, only to find some people have misunderstandings.

These three languages are developed by three companies, sun's Java, Netscape's JavaScript, and Microsoft's JScript.
Javascript is a programming language developed by Netscape and released with navigator navigators, between Java and HTML, and driven by Object events. It does not require a Java compiler, instead, it runs directly in a Web browser, whose predecessor is live script.

JScript is a javascript-like language.

Java is a new-generation object-oriented programming language released by Sun. It is especially suitable for Internet application development. Of course, it can also develop other applications. When installing Sybase and DB2, I have noticed that all their installation programs seem to be written in Java. The predecessor of Java is the oak language.

1. At first, there was only static html on the web.
2. To meet better interaction requirements, Netscape developed the livescript language used in navigator and renamed it Javascript
3. Microsoft released JScript for Internet Explorer.
4. The original differences between JScript and JavaScript were too large, and web programmers had to write two types of scripts for the two browsers. Ecmascript was born, an international standardized JavaScript version. Currently, mainstream browsers support this version.
5. when writing a program, we 'd better write <script language = JavaScript> instead of <script language = JScript>. Because Javascript is a common name, it is recognized by all browsers, and JScript is only known by IE.
6. The difference in the details of other languages is not something that can be done in one or two cases. But I personally think it is best to follow the ecmascript standard in programming. This ensures compatibility.
7. By the way, JavaScript was originally called livescript. Later, when sun's Java was booming, Netscape changed its name to JavaScript.

I checked a lot of information and thought this article was good. You're welcome.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.