How is JavaScript different from Java?

How is JavaScript different from Java?

How is JavaScript different from Java?

The JavaScript programming language, developed by Netscape, Inc., is not part of the Java platform.

JavaScript does not create applets or stand-alone applications. In its most common form, JavaScript resides inside HTML documents, and can provide levels of interactivity to web pages that are not achievable with simple HTML.

Key differences between Java and JavaScript:

  • Java is an OOP programming language while Java Script is an OOP scripting language.
  • Java creates applications that run in a virtual machine or browser while JavaScript code is run on a browser only.
  • Java code needs to be compiled while JavaScript code are all in text.
  • They require different plug-ins.

For additional information about JavaScript, visit

JavaScript Error javascript.JSException: Unknown name

When loading the webpage an error is displayed:

JavaScript Error javascript.JSException: Unknown name

Possible causes:

  1. JavaScript is not enabled in the browser.
  2. The browser does not support JavaScript technology.
  3. The web page has a JavaScript programming error.

If JavaScript is already enabled in the web browser, then the error message indicates that there is a programming error in the JavaScript code. Contact the webmaster of that site to report the error including:

  1. Error message
  2. Type and version of the browser used
  3. URL of the web page that displayed the error message
  4. Steps to reproduce the error


Leave a Reply

Your email address will not be published. Required fields are marked *