JavaScript is a scripting language, that is, lightweight, dynamic, loosely typed, prototype-based programming language which is used in many different environments. * A lightweight programming language that is interpreted by the browser engine when the web page is loaded.
* Dynamic programming languages execute at runtime; they are not compiled. Because of this, JavaScript is sometimes considered a scripting language as opposed to a true programming language (obviously a misconception). When you have JavaScript within an HTML document it will be parsed as the page loads within the browser, hence at "runtime".
* Loosely typed languages do not insist upon any strong typing system. If you’ve programmed in C or Java (not the same as JavaScript) you’ll know that when declaring a variable you have to specify a type such as ‘int’ (integer). JavaScript is different in that you don’t need to specify the type.
* To perform inheritance within JavaScript you have to use something called prototypes. JavaScript does not support classes.
Features of Java Script. *
* JavaScript is Browser Side Scripting Language. * Script that executes on local Browser is called browser side scripting. * Usually Client / web surfer’s PC is called local PC. * JS Script is embedded in the HTML page, * When user requests particular page containing script, script executes in local browser.
* JavaScript is designed to add interactivity to HTML pages.
Adding JavaScript to your HTML code allows you to change completely the document appearance, from changing text, to changing colors, or changing the options available in a drop-down list, or switching one image with another when you roll your mouse over it and much more. JavaScript can be used to make HTML pages more dynamic. All plain HTML files are static.
* JavaScript is Lightweight Programming Language. * JS adds programming facility to HTML page. * JS