Skip to content

Commit b2533c8

Browse files
authored
Merge pull request lydiahallie#77 from dotrungkien/master
[Vietnamese] correct typo and improve tranlation
2 parents 85551a4 + 6199ad7 commit b2533c8

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README-vi.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -439,8 +439,9 @@ Tất cả các object đều có prototypes, ngoại trừ **base object**. Obj
439439

440440
</p>
441441

442-
</details>---
442+
</details>
443443

444+
---
444445

445446
###### 15. Ouput là gì?
446447

@@ -859,7 +860,6 @@ console.log(a[b]);
859860

860861
Object keys sẽ tự động được convert sang dạng string. Chúng ta đang set một object như là một key cho object `a`, với giá trị là `123`.
861862

862-
However, when we stringify an object, it becomes `"[Object object]"`. So what we are saying here, is that `a["Object object"] = 123`. Then, we can try to do the same again. `c` is another object that we are implicitly stringifying. So then, `a["Object object"] = 456`.
863863
Tuy nhiên khi ta string hóa một object, nó sẽ trở thành `"[Object object]"`. Nên tại đây phép gán này thực chất chính là `a["Object object"] = 123`. Phép gán tiếp theo cũng giống hệt vậy. `c` là một object khác mà chúng ta đang string hóa nó. Theo đó, `a["Object object"] = 456`.
864864

865865
Cuối cùng khi gọi `a[b]`, thực chất chính là gọi `a["Object object"]`. Giá trị của nó là `456`, nên trả về là `456`.
@@ -915,7 +915,7 @@ WebAPI không thể thêm thứ gì đó vào stack cho tới khi nó được s
915915

916916
<img src="https://i.imgur.com/uyiScAI.png" width="200">
917917

918-
`bar` được gọi, `"Second"` được log ra, và nó được đưa ra khói stack.
918+
`bar` được gọi, `"Second"` được log ra, và nó được đưa ra khỏi stack.
919919

920920
</p>
921921
</details>
@@ -1053,7 +1053,7 @@ undefined;
10531053
- A: `0`, `''`, `undefined`
10541054
- B: `0`, `new Number(0)`, `''`, `new Boolean(false)`, `undefined`
10551055
- C: `0`, `''`, `new Boolean(false)`, `undefined`
1056-
- D: All of them are falsy
1056+
- D: Tất cả đều là falsy
10571057

10581058
<details><summary><b>Đáp án</b></summary>
10591059
<p>
@@ -1210,7 +1210,6 @@ Primitive types là `boolean`, `null`, `undefined`, `bigint`, `number`, `string`
12101210

12111211
#### Đáp án: C
12121212

1213-
`[1, 2]` is our initial value. This is the value we start with, and the value of the very first `acc`. During the first round, `acc` is `[1,2]`, and `cur` is `[0, 1]`. We concatenate them, which results in `[1, 2, 0, 1]`.
12141213
`[1, 2]` là giá trị khởi tạo. Đây là giá trị chúng ta bắt đầu, và cũng là giá trị đầu tiên của `acc`. Tại vòng đầu tiên, `acc``[1,2]`, và `cur``[0, 1]`. Ta nối chúng lại tạo ra `[1, 2, 0, 1]`.
12151214

12161215
Tiếp tục, `[1, 2, 0, 1]``acc``[2, 3]``cur`. Ta nối chúng lại tạo ra `[1, 2, 0, 1, 2, 3]`.

0 commit comments

Comments
 (0)