Can you spot a major irregularity in this code snippet?
order doesn't start with a number so parseFloat() returns NaNparseFloat doesn't work with stringsparseFloat doesn't work with decimalstypeof with numberThat'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.