Postfix operator: ++ : Postfix operator « Operators « JavaScript Tutorial






<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
<!--
var a = 6, b = 2;
alert(a++ + b);
alert(a);
//  -->
</script>
</head>
<body>

</body>
</html>








2.2.Postfix operator
2.2.1.Post-Increment
2.2.2.Post-Decrement
2.2.3.Postfix operator: ++
2.2.4.Postfix operator 2: --