Thanks very much for your help.
I started out with this
function convertToF(celsius) {
var fahrenheit;
// Only change code below this line
fahrenheit=(celsius*9/5)+32
// Only change code above this line
return fahrenheit;
}
// Change the inputs below to test your code
convertToF(0);
but that didn’t work or follow the form of the instructions we’d been given so I tried this…
function convertToF(celsius) {
var fahrenheit;
// Only change code below this line
celsius*=9;
celsius/=5;
celsius+=32;
// Only change code above this line
return fahrenheit;
}
// Change the inputs below to test your code
convertToF(0);
Still no luck. So I tried this …
function convertToF(celsius) {
var fahrenheit;
// Only change code below this line
celsius*=9;
celsius/=5;
celsius+=32;
celsius=fahrenheit;
// Only change code above this line
return fahrenheit;
}
this …
// Change the inputs below to test your code
convertToF(0);
function convertToF(celsius) {
var fahrenheit;
// Only change code below this line
celsius=fahrenheit;
celsius*=9;
celsius/=5;
celsius+=32;
// Only change code above this line
return fahrenheit;
}
// Change the inputs below to test your code
convertToF(0);
this…
function convertToF(celsius) {
var fahrenheit;
// Only change code below this line
celsius = fahrenheit;
fahrenheit*=9;
fahrenheit/=5;
fahrenheit+=32;
// Only change code above this line
return fahrenheit;
}
// Change the inputs below to test your code
convertToF(0);
this…
function convertToF(celsius) {
var fahrenheit;
// Only change code below this line
fahrenheit*=9;
fahrenheit/=5;
fahrenheit+=32;
fahrenheit = celsius;
// Only change code above this line
return fahrenheit;
}
// Change the inputs below to test your code
convertToF(0);
And as you can probably tell … after I’d checked for typos … tried the variations again … went to stackoverflow … tried the variations again … I started to go just a little loopy.