Basic Of JavaScript Day 1
Introduction :
- JavaScript is a object-oriented , dynamic programming language.
- JavaScript is a very powerful client-side scripting language.
- JavaScript is used mainly for enhancing the interaction of a user with the webpage.
- JavaScript is also being used widely in game development and mobile application development.
- JavaScript can be run on any operating systems and almost all web browsers.
History :
- JavaScript was created by Brendan Eich in 1995.
- JavaScript's original name was Mocha.
- JavaScript has nothing to do with java.
- Java was famous at that time, hence the name "JavaScript" was chosen, to ride on Java's success.
- Microsoft created a reverse-engineered version of JavaScript, know as JScript.
Example :
Program-
<html>
<body>
<b>This is a first Program of JavaScript</b>
<script>
var x=0;
X++;
alert(X);
var X="Hello";
alert(X);
</script>
</body>
</html>
Output-
Comments
Post a Comment