postheadericon 2. Write a JavaScript that demonstrates the use of +=,-=,*=,/= operators.





<html>
<head>
<title>EX-2: WTAD : www.bipinrupadiya.com</title>
</head>
<body>
<h1>
<script type="text/javascript">
var a=10;
document.write("<br>A: "+a);
a+=10;
document.write("<br>a+=10 : "+a);
a-=10;
document.write("<br>a-=10 : "+a);
a*=10;
document.write("<br>a*=10 : "+a);
a/=10;
document.write("<br>a/=10 : "+a);
</script>
</body>
</html>

0 comments:

Blog Archive

Total Pageviews

© BipinRupadiya.com. Powered by Blogger.