Skip to content

Commit c1b34d5

Browse files
authored
Merge pull request #71 from meilune/master
Translated article about operators
2 parents a9fb4c7 + 22897b0 commit c1b34d5

File tree

5 files changed

+150
-150
lines changed

5 files changed

+150
-150
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
The answer is:
2+
Atsakymai yra:
33

44
- `a = 2`
55
- `b = 2`
@@ -9,10 +9,10 @@ The answer is:
99
```js run no-beautify
1010
let a = 1, b = 1;
1111

12-
alert( ++a ); // 2, prefix form returns the new value
13-
alert( b++ ); // 1, postfix form returns the old value
12+
alert( ++a ); // 2, priešdėlio forma grąžina naująją vertę
13+
alert( b++ ); // 1, priedėlio forma grąžina senąją vertę
1414

15-
alert( a ); // 2, incremented once
16-
alert( b ); // 2, incremented once
15+
alert( a ); // 2, padidintas vieną kartą
16+
alert( b ); // 2, padidintas vieną kartą
1717
```
1818

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ importance: 5
22

33
---
44

5-
# The postfix and prefix forms
5+
# Priedėlio ir priešdėlio formos
66

7-
What are the final values of all variables `a`, `b`, `c` and `d` after the code below?
7+
Kokios yra galutės šių kintamųjų `a`, `b`, `c` ir `d` vertės įvykdžius kodą?
88

99
```js
1010
let a = 1, b = 1;
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
The answer is:
1+
Atsakymas:
22

3-
- `a = 4` (multiplied by 2)
4-
- `x = 5` (calculated as 1 + 4)
3+
- `a = 4` (padauginta iš 2)
4+
- `x = 5` (suskaičiuota kaip 1 + 4)
55

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ importance: 3
22

33
---
44

5-
# Assignment result
5+
# Užduoties rezultatas
66

7-
What are the values of `a` and `x` after the code below?
7+
Kokios yra `a` ir `x` vertės po kodo apačioje?
88

99
```js
1010
let a = 2;

0 commit comments

Comments
 (0)