Avi7
#1
Tell us what’s happening:
How Do You Change fahrenheit to celsius
Your code so far
function convertToF(celsius) {
let fahrenheit;
return fahrenheit;
}
var fahrenheit = celsius * (9 / 5) + 32;
convertToF(30);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36
.
Challenge: Convert Celsius to Fahrenheit
Link to the challenge:
Well, you declared the variable when it is already declared inside the function. And the declartaion is outside the function. Try putting it inside
Try to put it inside the function.
function myFunction(parameter){
let variable = 1 + parameter;
return variable;
}