File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -2079,12 +2079,15 @@ for some guidance.
20792079
20802080针对自动格式化工具不能涵盖的问题(缩进、 制表符还是空格、 双引号还是单引号等), 这里有一些指南。
20812081
2082- ### Use consistent capitalization
2082+ ### 使用一致的大小写
20832083JavaScript is untyped, so capitalization tells you a lot about your variables,
20842084functions, etc. These rules are subjective, so your team can choose whatever
20852085they want. The point is, no matter what you all choose, just be consistent.
20862086
2087- ** Bad:**
2087+ JavaScript 是无类型的, 所以大小写告诉你关于你的变量、 函数等的很多事情。 这些规则是主观的,
2088+ 所以你的团队可以选择他们想要的。 重点是, 不管你们选择了什么, 要保持一致。
2089+
2090+ ** 不好的:**
20882091``` javascript
20892092const DAYS_IN_WEEK = 7 ;
20902093const daysInMonth = 30 ;
@@ -2099,7 +2102,7 @@ class animal {}
20992102class Alpaca {}
21002103```
21012104
2102- ** Good ** :
2105+ ** 好的: **
21032106``` javascript
21042107const DAYS_IN_WEEK = 7 ;
21052108const DAYS_IN_MONTH = 30 ;
You can’t perform that action at this time.
0 commit comments