Hint
parseInt stops at the first non-parseable character. Always specify the radix to avoid ambiguity.
console.log(parseInt('10px'));
console.log(parseInt('0x1F'));
console.log(parseInt('10', 2));
console.log(parseInt('hello'));10 31 2 NaN
Explanation: "10px"→10 (stops at p). "0x1F" is hex=31. Base 2: "10"=2. "hello"→NaN (no valid digits).
Key Insight: parseInt stops at the first non-parseable character. Always specify the radix to avoid ambiguity.