เป็นโอเปอเรเตอร์ unary และทำงานโดยการย้อนกลับบิตทั้งหมดในโอเปอเรเตอร์
ตัวอย่าง
คุณสามารถลองเรียกใช้โค้ดต่อไปนี้เพื่อเรียนรู้วิธีทำงานกับ Bitwise NOT Operator(~) -
<html>
<body>
<script>
var b = 3; // Bit presentation 11
document.write("(~b) => ");
result = (~b);
document.write(result);
</script>
</body>
</html>