Here’s a structured guide to understanding the classic (and famously quirky) areas of JavaScript—often referred to as the “weird parts” made popular by Anthony Alicea’s course “JavaScript: Understanding the Weird Parts” .
typeof NaN; // 'number' NaN === NaN; // false isNaN('hello'); // true (coerces to NaN) Number.isNaN('hello'); // false (recommended)
use Number() , String() , or explicit Boolean() .