Home >Web Front-end >JS Tutorial >Are Java and JavaScript closely related?
Java and JavaScript are not related, they just have similar names; Java is an object-oriented programming language, a back-end language, and JavaScript is a literal scripting language, a dynamic type, weak Type, prototype-based language, belongs to front-end language.
The operating environment of this article: windows7 system, Java8.0&&javascript1.8.5 version, Dell G3 computer.
Java and JavaScript are not related. Java is a back-end language and JavaScript is a front-end language.
Java
Java is an object-oriented programming language that not only absorbs the various advantages of the C language, but also abandons the incomprehensible multiple inheritance and pointers in C and other concepts, so the Java language has two characteristics: powerful and easy to use. As a representative of static object-oriented programming languages, Java language perfectly implements object-oriented theory and allows programmers to perform complex programming with an elegant way of thinking.
JavaScript
JavaScript is a literal scripting language that is a dynamically typed, weakly typed, prototype-based language with built-in support for types. Its interpreter is called the JavaScript engine, which is part of the browser and is widely used in client-side scripting languages. It was first used on HTML (an application under Standard Universal Markup Language) web pages to add dynamic functions to HTML web pages. .
When many people see javascript, they always confuse it with java, because both have java. People who don’t know the language think that javascript is like the iPhone 5C, a “plastic” version of java. ;
Here I still want to recommend the editor’s web front-end learning group: 687958461. Whether you are a novice or an expert, I welcome everyone. I will share useful information from time to time, including one compiled by the editor myself. The latest web front-end information and zero-based introductory tutorials are welcome to both beginners and advanced friends. I will answer your questions when I am not busy.
But in fact, java and javascript have similar names, and javascript is also called ECMAScript. Therefore, the relationship between java and javascript is like Lei Feng and Leifeng Pagoda
[Recommended learning: javascript advanced tutorial】
The above is the detailed content of Are Java and JavaScript closely related?. For more information, please follow other related articles on the PHP Chinese website!