1.

What are Prototypes and how do we use them in JavaScript?

Answer»
  • JavaScript

JavaScript is a LIGHTWEIGHT and interpreted PROGRAMMING language that introduced in 1995 as LiveScript.  Brendan Eich developed it and the language became an ECMA standard in 1997.

  • Java

Java is a programming language developed by James Gosling. It is a language used in my desktop application, web applications, games, etc. Java is a platform INDEPENDENT object-oriented language.

The FOLLOWING is the DIFFERENCE between Java and JavaScript:

Basis
JavaJavaScript
DefinitionJava is a programming language developed by James Gosling. It is a language used in my desktop application, web applications, games, etc. Java is a platform independent object-oriented language.
JavaScript is a lightweight and interpreted programming language that introduced in 1995 as LiveScript.  Brendan Eich developed it and the language became an ECMA standard in 1997.
OOPJava is an OOP programming language
JavaScript is an OOP scripting language.
Running on BrowserJava creates applications that run in a virtual machine or browser
JavaScript code is run on a browser only.
Compiled vs. InterpretedJava Program is compiled.
JavaScript scripts are Interpreted.
Type CheckingJava has static type checking. The type of a variable is checked at compile-time.
JavaScript has dynamic typing. The type safety is verified at runtime.
Type of VariableThe type of variable should be specified.
It is not required to specify the type of variable.


Discussion

No Comment Found