bitwise not

by fredericklim

HTML

<!DOCTYPE html>
<script>
"use strict";

let a = 5;

console.log( ~a ); // -3, the same as -(2+1)
</script>