The user uses the prompt () function to read the degree Fahrenheit value. The parseFloat () function turns the value read from the user into a floating-point number. One may get the Celsius value by deducting 32 from the Fahrenheit number and dividing the result by 1.8.