parseFloatintermediateparseFloat('3.14abc') // β 3.14
parseFloat('abc3.14') // β NaNparseFloat() stops at the first non-numeric character β leading non-digits yield NaN.
parseFloat('3.14abc') stops at the first non-numeric character, returning 3.14.
Challenge: Verify the partial parse.