Working with the Increment Operator : Operator : Language Basics JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Language Basics » Operator »

 

Working with the Increment Operator



<HTML>
<BODY>
<H1>
<SCRIPT
var Inc = 1
document.write("Starting value of " + Inc + "<BR>")
document.write("IncPreFix " + ++Inc + "<BR>")
document.write("IncPostFix " + Inc++ + "<BR>")
document.write("Ending value of " + Inc)
</script>
</H1>
</BODY>
</HTML>

           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Language Basics
» Operator