fix(i18n): Minor Chinese Translation Fix & Add Solution (#36868)
- Replace a few terms with more proper terms - Rephrase 2nd paragraph for clearer meaning - Add Solutionpull/37885/head^2
parent
f68e7bd5cd
commit
6ee9f23514
|
@ -8,7 +8,7 @@ localeTitle: 将摄氏温度转换为华氏温度
|
||||||
---
|
---
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
<section id="description">从摄氏温度转换为华氏温度的算法是以摄氏度乘以<code>9/5</code>的温度加上<code>32</code> 。您将获得一个可变<code>celsius</code>表示摄氏温度。使用已定义的变量<code>fahrenheit</code>温度,并将其指定为相当于给定摄氏温度的华氏温度。使用上面提到的算法帮助将摄氏温度转换为华氏温度。不要过多担心函数和返回语句,因为它们将在未来的挑战中涵盖。目前,只使用您已经学过的运算符。 </section>
|
<section id="description">从摄氏温度转换为华氏温度的算法是以摄氏度乘以<code>9/5</code>,再加上<code>32</code> 。您将获得一个参数<code>celsius</code>代表着摄氏温度。使用已准备好代表华氏温度的变量<code>fahrenheit</code>,将<code>celsius</code>摄氏温度变量值兑换成华氏温度值,然后存储在<code>farenheit</code>变量里。使用以上提到的算法将摄氏温度转换为华氏温度。不需要过多担心函数和返回语句,因为它们将会在未来的挑战中加以解释。目前,只需使用您已经学过的运算符。 </section>
|
||||||
|
|
||||||
## Instructions
|
## Instructions
|
||||||
<section id="instructions">
|
<section id="instructions">
|
||||||
|
@ -61,6 +61,12 @@ convertToF(30);
|
||||||
<section id='solution'>
|
<section id='solution'>
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// solution required
|
function convertToF(celsius) {
|
||||||
|
let fahrenheit = celsius * 9/5 + 32;
|
||||||
|
|
||||||
|
return fahrenheit;
|
||||||
|
}
|
||||||
|
|
||||||
|
convertToF(30);
|
||||||
```
|
```
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Reference in New Issue