Did you know
NaN == Nanis actually
This might seem counterintuitive, but it's because NaN represents an
undefined value. Therefore, it's impossible to equate two NaN values using the equality operator.
The correct way of checking for NaN is yung the
console.log(Number.isNaN(NaN)); // True console.log(isNaN(NaN)); // True