First knowledge of JavaScript

Source: Internet
Author: User

The first time you touch JavaScript is when you look at tutorials on the web, and you see the content of DOM operations. At first it was a mistake to assume that JavaScript was a subset of Java. Because there is no deep understanding of JavaScript, there is no way to delve into the relationship between JavaScript and Java. It was not until recently that my view was completely wrong. JavaScript and Java are two completely different languages.

The following are derived from the network:

1 first of all, these two guys don't have any blood ties, Java was introduced by Sun Company in May 1995, 2 and JavaScript was designed and implemented by Netscape Company in 1995, 3 because Netscape company and Sun Company, Netscape High-level hope it looks like Java, 4 Therefore, it is named JavaScript.  5  6 Second, the nature of these two guys is different,  7Java is an object-oriented programming language that can compose cross-platform application software, 8 even if the development of a simple program, you must design objects; 9 and JavaScript is a literal-translation scripting language,  It itself provides a very rich interior object for designers to use.

What they have in common and different points:

1 Same point:2 their grammar and C language are very similar;3 they are object-oriented (although the way they are implemented is slightly different);4 JavaScript references Java's naming conventions at design time;5 6 different points:7 JavaScript is a dynamic type language, while Java is a static type language;8 JavaScript is a weak type, Java is strongly typed;9 JavaScript's object-oriented is a prototype-based (prototype-based) implementation,Ten Java is class-based (class-based); One JavaScript is a far cry from the way Java is compared.  A JavaScript refers to objects that are not included in Java at design time, - and it includes languages like self and Scheme.  -  the Shitenro - Links: http://www.zhihu.com/question/19913979/answer/13336117 - Source: Know -Copyright belongs to the author, please contact the author for authorization.

After some exploration, we have a certain understanding of JavaScript. I also hope that other people who have just come into contact with JavaScript will not commit the same mistakes as me.

The end.

by Little

First knowledge of JavaScript

Related Article

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.