<!DOCTYPE html>
<html>
<body>

<h1>The -- Operator</h1>

<p id="demo"></p>

<script>
var x = 5;
x--;
var z = x;
document.getElementById("demo").innerHTML = z;
</script>

</body>
</html>