Js The Weird Parts May 2026
console.log(typeof NaN); // "number" Yes. The representation of "Not a Number" is technically a number. And as we saw, it refuses to be friends with anyone, including itself. The only reliable way to check for NaN is:
const obj = { showThis: showThis }; obj.showThis(); // obj js the weird parts
It gets weirder:
const bound = showThis.bind("hello"); bound(); // String {"hello"} console