order
doesn't start with a number so parseFloat()
returns NaN
parseFloat
doesn't work with stringsparseFloat
doesn't work with decimalstypeof
with number
That's it! The parseFloat()
method returns NaN
if the string it receives doesn't start with a numeric, well, string.
Oh noes! The parseFloat()
method returns NaN
if the string it receives doesn't start with a numeric, well, string.