Skip to content

Commit 3ba1d59

Browse files
author
Mikhail
authored
Update README.md
1 parent 891cc91 commit 3ba1d59

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# clean-code-javascript
22

33
## Содержание
4-
1. [Введение](#introduction)
5-
2. [Variables](#variables)
4+
1. [Введение](#Введение)
5+
2. [Переменные](#Переменные)
66
3. [Functions](#functions)
77
4. [Objects and Data Structures](#objects-and-data-structures)
88
5. [Classes](#classes)
@@ -39,30 +39,30 @@ shaped into its final form. Finally, we chisel away the imperfections when
3939
we review it with our peers. Don't beat yourself up for first drafts that need
4040
improvement. Beat up the code instead!
4141

42-
## **Variables**
43-
### Use meaningful and pronounceable variable names
42+
## **Переменные**
43+
### Используйте значащие и произносимые имена переменных
4444

45-
**Bad:**
45+
**Плохо:**
4646
```javascript
4747
const yyyymmdstr = moment().format('YYYY/MM/DD');
4848
```
4949

50-
**Good**:
50+
**Хорошо**:
5151
```javascript
5252
const yearMonthDay = moment().format('YYYY/MM/DD');
5353
```
5454
**[⬆ back to top](#table-of-contents)**
5555

5656
### Use the same vocabulary for the same type of variable
5757

58-
**Bad:**
58+
**Плохо:**
5959
```javascript
6060
getUserInfo();
6161
getClientData();
6262
getCustomerRecord();
6363
```
6464

65-
**Good**:
65+
**Хорошо**:
6666
```javascript
6767
getUser();
6868
```

0 commit comments

Comments
 (0)