Java script is a general purpose, prototype based, object oriented scripting language developed jointly by sun and Netscape and is meant for the WWW. It is designed to be embedded in diverse applications and systems, with out consuming much memory. Java Script borrows most of its syntax from java but also inherits from AWK and PERL, with some indirect influence from self in its object prototype system.
Java scripts dynamically typed that is programs do not declare variable types, and the type of variable is unrestricted and can change at runtime. Source can be generated at run time and evaluated against an arbitrary scope. Typical implementations compile by translating source into a specified byte code format, to check syntax and source consistency. Note that the availability to generate and interpret programs at runtime implies the presence of a compiler at runtime.
Java script is a high level scripting language that does not depend on or expose particular machine representations or operating system services. It provides automatic storage management, typically using a garbage collector.
FEATURES:
- Java script is embedded into HTML documents and is executed with in them.
- Java script is browser dependent.
- Java Script is an interpreted language that can be interpreted by the browser.
- Java script is loosely typed language.
- Java script is an object based language.
- Java script is an Event-Driven language and supports event handlers to specify the functionality of a button.
ADVANTAGES
- Java Script can be used for client side application
- Java Script provides means to contain multi frame windows for presentation of the web.
- Java Script provides basic data validation before it is sent to the server. E.g., : login and password checking or whether the values entered are correct or whether all fields in a from are filled and reduced network traffic
- It creates interactive forms and client side lookup tables.