为了测试你的学习效果,我们结合之前的知识点来做一个摄氏度转华氏度的小程序。从Celsius摄氏度转换为Fahrenheit华氏度的算法是:摄氏度的温度乘于9除于5,再加上32。创建一个变量 fahrenheit,然后计算出摄氏度对应的华氏度。
怎么写function convert(celsius) {
// Only change code below this line
// Only change code above this line
return fahrenheit;
}// Change the inputs below to test your code
convert(30);