Skip to content

Commit aa05cd9

Browse files
Translate tasks and solutions to Vietnamese
1 parent e34ab53 commit aa05cd9

File tree

8 files changed

+50
-50
lines changed

8 files changed

+50
-50
lines changed

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

Lines changed: 0 additions & 18 deletions
This file was deleted.

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

Lines changed: 0 additions & 14 deletions
This file was deleted.

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

Lines changed: 0 additions & 5 deletions
This file was deleted.

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

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
Câu trả lời là:
3+
4+
- `a = 2`
5+
- `b = 2`
6+
- `c = 2`
7+
- `d = 1`
8+
9+
```js run no-beautify
10+
let a = 1, b = 1;
11+
12+
alert( ++a ); // 2, dạng tiền tố trả về giá trị mới
13+
alert( b++ ); // 1, dạng hậu tố trả về giá trị cũ
14+
15+
alert( a ); // 2, tăng một lần
16+
alert( b ); // 2, tăng một lần
17+
```
18+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
importance: 5
2+
3+
---
4+
5+
# Dạng tiền tố và hậu tố
6+
7+
Giá trị cuối cùng của tất cả các biến `a`,` b`, `c`` d` ở đoạn code dưới đây là gì?
8+
9+
```js
10+
let a = 1, b = 1;
11+
12+
let c = ++a; // ?
13+
let d = b++; // ?
14+
```
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Câu trả lời là:
2+
3+
- `a = 4` (được nhân với 2)
4+
- `x = 5` (được tính như 1 + 4)
5+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
importance: 3
2+
3+
---
4+
5+
# Kết quả gán
6+
7+
Giá trị của `a``x` ở đoạn code dưới đây là gì?
8+
9+
```js
10+
let a = 2;
11+
12+
let x = 1 + (a *= 2);
13+
```

0 commit comments

Comments
 (0)