ตัวดำเนินการลดค่าจะลดค่าจำนวนเต็มลงหนึ่งค่า นี่คือตัวอย่างที่ค่าของ a ลดลงสองครั้งโดยใช้ตัวดำเนินการ decrement สองครั้ง −
ตัวอย่าง
การสาธิตสด
<html>
<body>
<script>
<!--
var a = 33;
a = --a;
document.write("--a = ");
result = --a;
document.write(result);
</script>
</body>
</html>