What is JavaScript and WHY?

Javascript is a Client Side scripting language , Which execute on Client(Browser) and give out put on Client. JavaScript first appeared in Netscape 2.0 in 1995 with the name LiveScript. Generally javascript is using to develop dynamic websites . At now by using javascript we can develop Android and iPhone apps. Node.js is javascript based server to make real time apps. So It is good idea to start learn javascript

How to use JavaScript

We can implement Javascript in our html page by Two ways

In 'inline' method we used to write code in mother HTML page by using script tag

Inline JavaScript

in Second method , we write all java scripts in a separate ' .js ' file. and call that file on our HTML document

External JavaScript File

Tip : For best practise always used to write javascript on Separate file and use it in our Html document .