Friday, October 17, 2014

Write A program to print Increment Operator using Javascript (using variable)


Write A program to print Increment Operator using Javascript (using variable).
Code : increment-operator.html

<html>
<head>
<title>Arithmatic operator </title>
<style type="text/css">
.body
{
font-size:30;
color:blue;
{
</style>
</head>
<body class="body">
<script type="text/javascript">
var a=2;
var b=6;
a++;
b--;
document.write("increment operator : ",+ a);
document.write("</br>");
document.write("Decrement operator : ", + b);
</script>
</body>
</html>

No comments: