⚝ ATP Web Creation
JavaScript Introduction | What is JavaScript? | Use of JavaScript | Role of JavaScript in Web Development ATP Web Creation is a best place to develop your websites and various types of applications. We offer design and application development services for every stage of your mobile project.
Javascript is a popular client side programming language. Which is easy to learn and It needn't any installation. It just works in window browser and other platform like mobile tablet ISO and window as well. It also used in android development in some where.
Its file extension is .js and used in on page and off page as js file which is attached with the HTML document. It is very usable for client side scripting and perform any type of functions.
History of Javascript: The first time javascript i sintroduced in 90s In This decade Internet explorer and Netscape were being very popular browsers. Brendan Eich developed a programming language he named it LiveScript which allowed the browser to respond if command from user. Later It became Javascript.
Use of Javascript that answers the questions of why javascript is used.
There are following common uses of javascript:
(i) Changing HTML contents using javascript
(ii) Styling document using javascript
(iii) Developing Web and mobile app
(iv) Developing various platform's games
(v) Other Apllication development
(vi) Creating sever applications
(vii) It is also used in robotics applications.
Attachemnt of javascript file in HTML document:
In HTML document javascript is used in two forms:
(i) On page scripting: The script is writen in <script></script> html tags under head tag.
Example:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Page Title</title>
<meta name="" content=""/>
<!-- Javascript Coding -->
<script type="text/javascript">
alert("Hello world");
</script>
</head>
<body>
<h1> Heading 1</h1>
<p>My paragraph goes here.</p>
</body>
</html>
(ii) By attaching Javascript file in HTML Document
<script src="my-javascript.js"></script>
There are folloing role of java script in web development:
Your Comment