What is the difference between Number.parseFloat() and parseFloat()? Is one better than the other?
3 Answers

They are the exact same function. They don't only behave the same. They are the exact same function object.
To expand on that, Number.parseFloat() was created in ECMAScript 2015, as part of an effort to modularize globals [because global functions with no namespace makes me sad :(]
4 Comments
Number.parseFloat === parseFloat will remain true along time (but I doubt they will diverge, the most probable outcome is that parseFloat will disappear someday).parseFloat vs. Number.parseFloat
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/parseFloat
- https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/parseFloat
parseFloat === Number.parseFloat // => true
--
parseFloat is accessible via the Global scope as of ES2015
parseFloat
From MDN: its purpose is modularization of globals
--
Number.parseFloat is available via a method on the Number object (also since ES2015).
In either case, the behavior for both function calls is identical. Both will type coerce the input into a Number if possible (e.g.: parseFloat('67') // => 67) or return NaN if the parsed input wasn't able to be coerced.
1 Comment
Both will type coerce the input into a Number if possible that is incorrect. As the name suggests, the function(s) will parse the input and extract a float. If you call parseFloat("12.34abc") the result would be 12.34 as the function will only stop parsing when it finds a character that cannot be used to build a number, thus extracting the numeric value from the beginning of the string. NaN will be the result if the input starts with a non-numeric character. parseFloat is accessible via the Global scope as of ES2015 also incorrect - it's in the spec as global from version 1.As other people have said: they are exactly the same.
However(writing 2019), parseFloat has IE11 support, while Number.parseFloat does not.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/parseFloat
parsefloat()doesn't exist, so I guess that's worse?