Skip to content

Commit 797d94e

Browse files
authored
Update solution.md
1 parent 6859bfe commit 797d94e

File tree

1 file changed

+7
-5
lines changed
  • 1-js/02-first-steps/08-operators/1-increment-order

1 file changed

+7
-5
lines changed
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

2-
The answer is:
2+
Răspunsul este:
3+
34

45
- `a = 2`
56
- `b = 2`
@@ -9,10 +10,11 @@ The answer is:
910
```js run no-beautify
1011
let a = 1, b = 1;
1112

12-
alert( ++a ); // 2, prefix form returns the new value
13-
alert( b++ ); // 1, postfix form returns the old value
13+
alert( ++a ); // 2, forma prefix afișează noua valoare
14+
alert( b++ ); // 1, forma sufix afișează vechea valoare
15+
1416

15-
alert( a ); // 2, incremented once
16-
alert( b ); // 2, incremented once
17+
alert( a ); // 2, incrementat odată
18+
alert( b ); // 2, incrementat odată
1719
```
1820

0 commit comments

Comments
 (0)