chore(i18n,learn): processed translations (#49981)

This commit is contained in:
camperbot
2023-04-06 22:25:43 +05:30
committed by GitHub
parent 2076e41b2d
commit 6ce3e5d4c5
536 changed files with 1111 additions and 1057 deletions

View File

@@ -11,7 +11,7 @@ dashedName: comparisons-with-the-logical-and-operator
有时你需要在一次判断中做多个操作。 当且仅当<dfn>运算符</dfn>的左边和右边都是 true<dfn>逻辑与</dfn>运算符(`&&`)才会返回 `true`
同样的效果可以通过 if 语句的嵌套来实现:
The same effect could be achieved by nesting an `if` statement inside another `if`.
```js
if (num > 5) {
@@ -22,7 +22,7 @@ if (num > 5) {
return "No";
```
只有当 `num` 的值大于 `5` 并且小于`10` 时才会返回 `Yes`。 相同的逻辑可被写为:
This code will return `Yes` if `num` is greater than `5` and less than `10`. The same logic can be written with the <dfn>logical and</dfn> operator.
```js
if (num > 5 && num < 10) {

View File

@@ -13,7 +13,7 @@ dashedName: comparisons-with-the-logical-or-operator
<dfn>逻辑或</dfn>运算符由两个竖线(`||`)组成。 这个按键位于退格键和回车键之间。
下面这样的语句你应该很熟悉:
The pattern below should look familiar from prior waypoints.
```js
if (num > 10) {
@@ -25,7 +25,7 @@ if (num < 5) {
return "Yes";
```
只有当 `num` 大于等于 `5` 或小于等于 `10` 时,函数才返回 `Yes`。 相同的逻辑可以简写成:
This code will return `Yes` if `num` is between `5` and `10` (`5` and `10` included). The same logic can be written with the <dfn>logical or</dfn> operator.
```js
if (num > 10 || num < 5) {