After going through the good parts and messing around in node, I wonder why this is happening. I know it! refers to the operator "logical not", and that is !! basically booleanates (ifies?) return value! x, but why is it?
var x = 3, y = 4;
x != y;
x = !y
x = !!x*x
So, after playing a little with this, I understand that the declared: "x is not x (" true ", because! X === false) times x (true)"
So, I think, the question is why true * true === 1 in JS?
source
share