Let's build an interactive web application to help users convert a temperature in Fahrenheit to Celsius!
-
Create and connect an
index.js
file toindex.html
. -
Write a function named
convertToCelsius
which takes a temperature in Fahrenheit and returns the equivalent temperature in Celsius. -
Write a function named
describeTemperature
which takes a temperature in Fahrenheit and returns a description according to this table:Temperature (°C) Description < 0 very cold < 20 cold < 30 warm < 40 hot >= 40 very hot -
Prompt the user to provide a temperature in Fahrenheit. Then, alert them with a message that tells them the equivalent temperature in Celsius alongside a description of what that temperature would feel like.
Note
You can be creative with your flavor text! We're only looking for the key description words.
Please submit the link to your public GitHub repository.