Introduction to Javascript

Introduction to Javascript


-> JavaScript is a programming language that can be included on web pages to make them more interactive.


-> You can use it to check or modify the contents of forms, change images, open new windows and write dynamic page content.

-> You can even use it with CSS to make DHTML (Dynamic HyperText Markup Language).


-> JavaScript is a very powerful client-side scripting language.

-> JavaScript is used mainly for enhancing the interaction of a user with the webpage. 

-> In other words, you can make your webpage more lively and interactive, with the help of JavaScript.

-> JavaScript is also being used widely in game development and Mobile application development.



JavaScript was developed by Brendan Eich in 1995, which appeared in Netscape, a popular browser of that time.

- The language was initially called LiveScript and was later renamed JavaScript.
- There are many programmers who think that JavaScript and Java are the same.
-  In fact, JavaScript and Java are very much unrelated. Java is a very complex programming language whereas JavaScript is only a scripting language
- The syntax of JavaScript is mostly influenced by the programming language C.

Tools You Need Run JavaScript?
To start with, you need a text editor to write your code and a browser to display the web pages you develop. You can use text editor of your choice including Notepad++, Komodo Edit or any other text editor you are comfortable with. You can use any web browser including Internet Explorer, Google Chrome, Firefox etc.
EXAMPLE


<html>

<head>


<title>My First JavaScript code!!!</title>


<script type="text/javascript">


alert("Welcome!!! You are now learning JavaScript.");

</script>


</head>


<body>


</body>



</html>


Comments

Popular Posts