JavaScript » Bitwise » ~

This is the bitwise NOT operator and it works by converting each bit of its operand to its opposite.

Examples

Code:
result = ~a;
Explanation:

This example returns -14.