JavaScript
JavaScript is the scripting language of the Web!
JavaScript is used in millions of web pages to improve the design, validate forms, detect browsers, create cookies, and much more.
JavaScript is the most popular scripting language on the Internet, and works in all major browsers, such as Internet Explorer, Mozilla, Firefox, Netscape, and Opera.
JavaScript vs JScript
JavaScript originated from Netscape, and for a time, only Netscape products supported it.
Microsoft now supports it, but as a “work-a-like” called JScript.
The resulting inconsistencies make it difficult to write JavaScript that behaves the same in both Netscape Navigator and Microsoft Internet Explorer.
This could be attributed to the slow progress of JavaScript through the standards bodies.
What Is JavaScript?
- JavaScript was designed to add interactivity to HTML pages.
- JavaScript is a scripting language, which is a lightweight language.
- A JavaScript consists of lines of executable computer code.
- A JavaScript is usually embedded directly into HTML pages.
- JavaScript is an interpreted language.
- Everyone can use JavaScript without purchasing a license.
Are Java and JavaScript the Same?
NO!
JavaScript should not be confused with Java.
Java and JavaScript are two completely different languages in both concept and design!
Java (developed by Sun Microsystems) is a powerful and much more complex programming language—in the same category as C and C++.
JavaScript is a registered trademark of Sun Microsystems, Inc.
It was used under license for technology invented and implemented by Netscape Communications and current entities such as the Mozilla Foundation.
Demonstration