WTAD Practical-2
Write a JavaScript that demonstrates the use of +=,-=,*=,/= operators.
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>
<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>
0 comments :