Skip to content

Commit b60c501

Browse files
authored
Update translation of 操作符 and 运算符 (#698)
Update translation of 操作符 and 运算符 (#698)
1 parent 96142be commit b60c501

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

1-js/02-first-steps/04-variables/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
let message;
1919
```
2020

21-
现在,我们可以通过赋值操作符 `=` 为变量添加一些数据:
21+
现在,我们可以通过赋值运算符 `=` 为变量添加一些数据:
2222

2323
```js
2424
let message;

1-js/03-code-quality/05-testing-mocha/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
我们想要创建一个函数 `pow(x, n)` 来计算 `x``n` 次幂(`n` 为整数)。我们假设 `n≥0`
3434

35-
这个任务只是一个例子:JavaScript 中有一个 `**` 操作符可以用于幂运算。但是在这里我们专注于可以应用于更复杂任务的开发流程上。
35+
这个任务只是一个例子:JavaScript 中有一个 `**` 运算符可以用于幂运算。但是在这里我们专注于可以应用于更复杂任务的开发流程上。
3636

3737
在创建函数 `pow` 的代码之前,我们可以想象函数应该做什么并且描述出来。
3838

1-js/04-object-basics/01-object/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ alert(*!*user.name*/!*); // 'Pete',通过名为 "user" 的引用查看修改
547547
548548
### 比较引用
549549
550-
等号 `==` 和严格相等 `===` 操作符对于对象来说没差别
550+
等号 `==` 和严格相等 `===` 运算符对于对象来说没差别
551551
552552
**两个对象只有在它们其实是一个对象时才会相等。**
553553

1-js/05-data-types/04-array/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ alert( [1,2] + 1 ); // "1,21"
421421

422422
数组没有 `Symbol.toPrimitive`,也没有 `valueOf`,它们只能执行 `toString` 进行转换,所以这里 `[]` 就变成了一个空字符串,`[1]` 变成了 `"1"``[1,2]` 变成了 `"1,2"`
423423

424-
`"+"` 操作符把一些项加到字符串后面时,加号后面的项也会被转换成字符串,所以下一步就会是这样:
424+
`"+"` 运算符把一些项加到字符串后面时,加号后面的项也会被转换成字符串,所以下一步就会是这样:
425425

426426
```js run
427427
alert( "" + 1 ); // "1"

0 commit comments

Comments
 (0)