Introduction of JavaScript
What Is Java Script ?
What Java Script Can Do ?
-
User Interaction
-
Form Validation
-
Image Swaps/Rollovers
- What Java Script Can’t Do
-
JavaScript cannot access Database(without AJAX).
-
JavaScript cannot access files on client machine.
- JavaScript V/s Java
- JavaScript and Java share two very similar names but they are completely different languages that have very few things in common.
-
Java was developed by Sun Microsystems and is a full fledged, standalone, object oriented language
JavaScript was created by Netscape and is a scripting language which placed inside an HTML page and provides interactivity to the page.
-
Java is both a compiled as well as interpreted language and JavaScript is purely an interpreted language.
-
Java runs inside JVM and JavaScript runs inside web browser.
-
Java is a strongly typed language as it is compulsory to declare every variable’s data type and JavaScript is a loosely typed language as we do not have declare data types of variables before using them.
-
Java has been designed with security as it’s top priority. Every thing in java runs under the control of JVM that handles execution of a Java code and JavaScript is a much less secure language.
JavaScript History
Developed By |
Brendan Eich |
Original Name |
Mocha, LiveScript |
Company |
Netscape |
Launching Year |
1996 |
First Version |
1.0 |
Latest Version |
1.8 |
JavaScript Embedding
JavaScript can be embedded in HTML page in 2 ways:
- Locally
- Externally