What is Javascript? What is java? What is the relationship between JavaScript and Java?

Summary: Like Lei Feng and Leifeng Tower, Wife and Wife Cake, and Kaspersky and Pakistan,
what is Javascript?
Javascript is a scripting language developed from Netscape's LiveScript. Its main purpose is to solve the problem of speed left over by server terminal languages, such as Perl, and dao. At that time, the server needed to verify the data. As the network speed was quite slow, only 28.8kbps, the verification step wasted too much time. So Netscape's browser Navigator added Javascript to provide the basic functions of data verification.
What is Java?
Java is an object-oriented du programming language that can write cross-bai platform application software. It is the general term for Java programming language and Java platform (ie daoJavaSE, JavaEE, JavaME) launched by zhiSun Microsystems in May 1995. Java technology has excellent versatility, efficiency, platform portability and security, and is widely used in personal PCs, data centers, game consoles, scientific supercomputers, mobile phones and the Internet. It also has the world's largest professional developer community . In the global cloud computing and mobile Internet industry environment, Java has significant advantages and broad prospects.
What is the relationship between JavaScript and Java?
The appearance letters of java and javascript are not like bai, but they are two completely different du languages. According to the image, the relationship between the two is the same as the relationship between Lei Feng and Zhi Leifeng Pagoda.
1. Java and JavaScript do not have any blood relationship. Java was launched by Sun company in May 1995, and javascript was designed and implemented by Netscape company in 1995. Due to the cooperation between Netscape company and Sun company, Netscape executives Hope it looks like Java, so it is named JavaScript.
2. Java and JavaScript are different in nature. Java is an object-oriented programming language that can write cross-platform application software. Even if you are developing simple programs, you must design objects; while JavaScript is a literal scripting language. It itself provides a very rich internal objects for designers to use.
3. Their execution methods are also different. Java is a language between interpreted and compiled languages. Java source code must be compiled and interpreted on the corresponding platform before being passed to the client for execution. It implements the constraints of compiling code independent of a particular platform. JavaScript is an interpreted programming language. The source code does not need to be compiled before being sent to the client for execution. Instead, the character code in text format is sent to the client for interpretation and execution by the browser.
4. The uses of the two are different.
Java is widely used in personal PCs, data centers, game consoles, scientific supercomputers, mobile phones, and the Internet.
The purpose of Javascript is:
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 visitor's browser information;
6). Control cookies, including creation and modification.

Guess you like

Origin blog.csdn.net/lqlq54321/article/details/106844601
Recommended