Question: in javasript: Function Convert Fahrenheit to Celsius Create a function per the following: Input: Fahrenheit temperature Return: Fahrenheit temperature converted to Celsius Notes: a .
in javasript: Function Convert Fahrenheit to Celsius
Create a function per the following:
Input: Fahrenheit temperature
Return: Fahrenheit temperature converted to Celsius
Notes:
a Fahrenheit to Celsius conversion formula is:
C F
Example
Fahrenheit.
Celsius
Below is the starter code copy and paste the below and write the function
Write code for a function
TODO: your code here
Test your function.
Note the following:
Input: Fahrenheit temperature
Output: Fahrenheit temperature converted to Celsius
Various users may use the function and display the output in
different formats. Therefore, the function returns the result and
does not display it on the console.
Create input and output variables and test
let deg;
let converted fahrenheitToCelsiusdeg;
console.logWaters boiling temperature is $deg Fahrenheit or $converted Celsius;
Test with degrees Fahrenheit No variables
console.log degrees Fahrenheit $fahrenheitToCelsius degrees Celsius;
Create a variable and test
let degpt;
console.logTemperature of $degpt Fahrenheit is $fahrenheitToCelsiusdegpt is
equivalent to degrees Celsius;
Your output should be as follows:
Water's boiling temperature is Fahrenheit or Celsius
degrees Fahrenheit degrees Celsius
Temperature of Fahrenheit is is equivalent to degrees
Celsius
Enhance the output for the last test to format the result with decimals
Use Google to help:
Temperature of Fahrenheit is is equivalent to degrees Celsius
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
