You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [Creating a time object](#creating-a-time-object)
41
-
- [Getting full year](#getting-full-year)
42
-
- [Getting month](#getting-month)
43
-
- [Getting date](#getting-date)
44
-
- [Getting day](#getting-day)
22
+
- [Giá trị đúng](#truthy-values)
23
+
- [Giá trị sai](#falsy-values)
24
+
- [Không xác định](#undefined)
25
+
- [Giá trị không tồn tại](#null)
26
+
- [Toán tử](#operators)
27
+
- [Toán tử gán](#assignment-operators)
28
+
- [Toán tử số học](#arithmetic-operators)
29
+
- [Toán tử so sánh](#comparison-operators)
30
+
- [Toán tử logic](#logical-operators)
31
+
- [Toán tử tăng](#increment-operator)
32
+
- [Toán tử giảm](#decrement-operator)
33
+
- [Toán tử điều kiện](#ternary-operators)
34
+
- [Độ ưu tiên của toán tử](#operator-precedence)
35
+
- [Phương thức cửa sổ](#window-methods)
36
+
- [Phương thức alert()](#window-alert-method)
37
+
- [Phương thức prompt()](#window-prompt-method)
38
+
- [Phương thức confirm()](#window-confirm-method)
39
+
- [Đối tượng thời gian](#date-object)
40
+
- [Tạo một đối tượng thời gian](#creating-a-time-object)
41
+
- [Lấy giá trị năm](#getting-full-year)
42
+
- [Lấy giá trị tháng](#getting-month)
43
+
- [Lấy giá trị ngày](#getting-date)
44
+
- [Lấy giá trị thứ trong tuần](#getting-day)
45
45
- [Getting hours](#getting-hours)
46
46
- [Getting minutes](#getting-minutes)
47
47
- [Getting seconds](#getting-seconds)
48
48
- [Getting time](#getting-time)
49
-
- [💻 Day 3: Exercises](#-day-3-exercises)
50
-
- [Exercises: Level 1](#exercises-level-1)
51
-
- [Exercises: Level 2](#exercises-level-2)
52
-
- [Exercises: Level 3](#exercises-level-3)
49
+
- [💻 Ngày 3: Bài tập](#-day-3-exercises)
50
+
- [Bài tập: Cấp độ 1](#exercises-level-1)
51
+
- [Bài tập: Cấp độ 2](#exercises-level-2)
52
+
- [Bài tập: Cấp độ 3](#exercises-level-3)
53
53
54
54
# 📔 Day 3
55
55
56
56
## Booleans
57
57
58
-
A boolean data type represents one of the two values:_true_ or _false_. Boolean value is either true or false. The use of these data types will be clear when you start the comparison operator. Any comparisons return a boolean value which is either true or false.
59
58
60
-
**Example: Boolean Values**
59
+
Dữ liệu boolean thể hiện một trong hai giá trị: True (đúng) hoặc False (sai). Giá trị của boolean sẽ là đúng (True) hoặc sai (False). Việc sử dụng các kiểu dữ liệu này sẽ rõ ràng khi bạn sử dụng toán tử so sánh. Bất kì phương thức so sánh nào đều sẽ trả về giá trị boolean đúng hoặc sai.
60
+
61
+
**Ví dụ: Giá Trị Boolean**
61
62
62
63
```js
63
64
let isLightOn =true
@@ -68,9 +69,9 @@ let truValue = 4 > 3 // true
68
69
let falseValue =4<3// false
69
70
```
70
71
71
-
We agreed that boolean values are either true or false.
72
+
Chúng ta có thể thấy được boolean chỉ có giá trị đúng hoặc sai.
72
73
73
-
### Truthy values
74
+
### Giá trị đúng
74
75
75
76
- All numbers(positive and negative) are truthy except zero
76
77
- All strings are truthy except an empty string ('')
0 commit comments