Friday 12 April 2013

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

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


<HTML>
<HEAD>
<TITLE>WTAD.practical-2 @iAmLearningHere </TITLE>
</HEAD>
<BODY>
<H2>Demonstration the use of +=,-=,*=,/= operators.</H2>
<H3>
<script type="text/javascript">

    var i = 11;
    document.write("<br> i = " + i);
    i += 10;
    document.write("<br>( i +=10 ) =>" + i);
    i *= 10;
    document.write("<br>( i *=10 ) =>" + i);
    i -= 10;
    document.write("<br>( i -=10 ) =>" + i);
    i /= 10;
    document.write("<br>( i /=10 ) =>" + i);
</script>

</H3>
</BODY>
</HTML>
WTAD practical 2


For all WTAD programs wtad-practicals.html
To get all programs in your inbox.Enter your email

Kindly Bookmark and Share it:

0 comments :

Post a Comment

Any Query ? any suggestion ? comment here

 

Recent Post

Recent Comments

© 2010 IamLearningHere Template by MBT