Prefix operator 2: -- : Prefix operator « Operators « JavaScript Tutorial






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

</body>
</html>








2.3.Prefix operator
2.3.1.Pre-Increment
2.3.2.Pre-Decrement
2.3.3.Prefix operator: ++
2.3.4.Prefix operator 2: --