JavaScript parseFloat() function : The parseFloat() function is used to get the floating point number from a passed string. It first parse the string and then return the number as a decimal number.
The parseFloat() function parses a string argument and returns a floating point number.