Skip to content

Commit 92c9a5b

Browse files
Merge pull request #260 from Kichikahunov/1-js/02-first-steps/07-operators
1-js/02-first-steps/07-operators
2 parents 7c5d1fd + ea09996 commit 92c9a5b

5 files changed

Lines changed: 160 additions & 161 deletions

File tree

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
2-
The answer is:
1+
Ответ:
32

43
- `a = 2`
54
- `b = 2`
@@ -9,10 +8,10 @@ The answer is:
98
```js run no-beautify
109
let a = 1, b = 1;
1110

12-
alert( ++a ); // 2, prefix form returns the new value
13-
alert( b++ ); // 1, postfix form returns the old value
11+
alert( ++a ); // 2, префиксная форма возвращает новое значение
12+
alert( b++ ); // 1, постфиксная форма возвращает старое значение
1413

15-
alert( a ); // 2, incremented once
16-
alert( b ); // 2, incremented once
14+
alert( a ); // 2, значение увеличено один раз
15+
alert( b ); // 2, значение увеличено один раз
1716
```
1817

1-js/02-first-steps/07-operators/1-increment-order/task.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ importance: 5
22

33
---
44

5-
# The postfix and prefix forms
5+
# Постфиксная и префиксная формы
66

7-
What are the final values of all variables `a`, `b`, `c` and `d` after the code below?
7+
Чему будут равны переменные `a`, `b`, `c` и `d` в примере ниже?
88

99
```js
1010
let a = 1, b = 1;
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
The answer is:
1+
Ответ:
22

3-
- `a = 4` (multiplied by 2)
4-
- `x = 5` (calculated as 1 + 4)
3+
- `a = 4` (умножено на 2)
4+
- `x = 5` (вычислено как 1 + 4)
55

1-js/02-first-steps/07-operators/2-assignment-result/task.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ importance: 3
22

33
---
44

5-
# Assignment result
5+
# Результат присваивания
66

7-
What are the values of `a` and `x` after the code below?
7+
Чему будут равны переменные `a` и `x` в примере ниже?
88

99
```js
1010
let a = 2;

0 commit comments

Comments
 (0)