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.