Skip to content

Commit fdae9ad

Browse files
committed
Use consistent capitalization
1 parent 0d4a323 commit fdae9ad

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README-zh-CN.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2079,12 +2079,15 @@ for some guidance.
20792079

20802080
针对自动格式化工具不能涵盖的问题(缩进、 制表符还是空格、 双引号还是单引号等), 这里有一些指南。
20812081

2082-
### Use consistent capitalization
2082+
### 使用一致的大小写
20832083
JavaScript is untyped, so capitalization tells you a lot about your variables,
20842084
functions, etc. These rules are subjective, so your team can choose whatever
20852085
they want. The point is, no matter what you all choose, just be consistent.
20862086

2087-
**Bad:**
2087+
JavaScript 是无类型的, 所以大小写告诉你关于你的变量、 函数等的很多事情。 这些规则是主观的,
2088+
所以你的团队可以选择他们想要的。 重点是, 不管你们选择了什么, 要保持一致。
2089+
2090+
**不好的:**
20882091
```javascript
20892092
const DAYS_IN_WEEK = 7;
20902093
const daysInMonth = 30;
@@ -2099,7 +2102,7 @@ class animal {}
20992102
class Alpaca {}
21002103
```
21012104

2102-
**Good**:
2105+
**好的:**
21032106
```javascript
21042107
const DAYS_IN_WEEK = 7;
21052108
const DAYS_IN_MONTH = 30;

0 commit comments

Comments
 (0)