parseFloat() function returns
a floating-point number from a string.
It reads the number from the string
until it reaches a character that cannot
be converted to an integer.
In the example given below,
the string stored in the variable
floatingNumber, contains the number 12.34
the letters px.
stops reading the string
as soon as it gets the letter p
returns the floating-point number.