Ajp Practical 1
Ajp Practical 1
Title of Experiment Write simple Java Script with HTML for arithmetic expression
evaluation and message printing.
Resources required:
Hardware Software
Theory
JavaScript is a widely used scripting language originally developed by Netscape for both client-side
and server-side scripting. Client-side JavaScript is used widely and supported well by major browsers
including NN, IE, AOL, MOZILLA, and Opera. We shall present client-side JavaScript for adding
dynamism and interactivity to Web pages and will refer to it simply as JavaScript.
Exercise:
Q1) Write a program to print hello world.
Ans: Program:
<!DOCTYPE html>
<html>
<head>
<title>hello</title>
</head>
<body>
<script>
document.write("hello world");
</script>
</body>
</html>
Output:
Output:
Conclusion:
We have learnt about how to print message and how to perform arithmetic operation using
alert and prompt.