The International Space Station periodically sends back temperature readings from space, and recently sent back a report that the temperature was around -270 degrees Celsius.
Write JavaScript code to model the Celsius temperature concept in a variable, convert this Celsius temperature to Fahrenheit, and then log both temperatures to the console.
HINT: the formula for temperature conversion is:
\[
F = \frac{9}{5}C + 32
\]
Create a JavaScript function called calculateTemp
that takes an input parameter called tempC (the Celsius temperature),
and returns the corresponding temperature in Fahrenheit.
Invoke the function, passing in a Celsius temperature of -270 degrees,
and store the resulting Fahrenheit temperature in a variable.
Log both temperatures to the console.
See the numeric Celsius temperature input box and "Calculate" button below. Write JavaScript code to respond to button click events, and when the button is clicked, the program should convert this Celsius temperature to Fahrenheit (using the function from Part 2), and finally then display the Fahrenheit temperature in the designated span element.