what is the similar expression for NaN in JS?
typeof NaN = "number", NaN is a number type, so is it a 64 floating point number in js like any other number?
feels that NaN is similar to 0
for the numerical type ~ ~ num, it will be converted to a 32-bit integer, and if the original value is also an integer not greater than 2 * 31, it will be the same
let num = 0;
~num; // -1
~~num; // 0
~~num === num; // true
// NaN
~NaN; // -1
~~NaN; // 0
~~NaN === num
so NaN is a special 0, or 0 has two states?