Skip to content

Commit 259e09b

Browse files
committed
1.2.5. Article - Boolean
1 parent 9242bc1 commit 259e09b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

1-js/02-first-steps/05-types/article.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -127,28 +127,28 @@ Bəzi proqramlaşdırma dillərində yalnız bir simvolu saxlamaq üçün xüsus
127127
JavaScript-də belə bir tip yoxdur. Yalnız bir verilən tipi var: `string`. Bir `string` bir və ya daha çox simvoldan ibarət ola bilər.
128128
```
129129
130-
## Boolean (logical type)
130+
## Boolean (məntiqi tip)
131131
132-
The boolean type has only two values: `true` and `false`.
132+
`boolean` tipi sadəcə 2 mümkün dəyərə sahibdir: `true` `false`.
133133
134-
This type is commonly used to store yes/no values: `true` means "yes, correct", and `false` means "no, incorrect".
134+
Bu tip ümumi olaraq hə/yox dəyərlərini saxlamaq üçün istifadə olunur: `true`, "bəli, doğrudur", `false` "xeyr, yanlışdır" mənasına gəlir.
135135
136-
For instance:
136+
Məsələn:
137137
138138
```js
139-
let nameFieldChecked = true; // yes, name field is checked
140-
let ageFieldChecked = false; // no, age field is not checked
139+
let nameFieldChecked = true; // bəli, ad sahəsi yoxlandı
140+
let ageFieldChecked = false; // xeyr, yaş sahəsi yoxlanmadı
141141
```
142142
143-
Boolean values also come as a result of comparisons:
143+
`boolean` tipi həm də nəticələrin müqayisəsində istifadə edilir:
144144
145145
```js run
146146
let isGreater = 4 > 1;
147147

148-
alert( isGreater ); // true (the comparison result is "yes")
148+
alert( isGreater ); // true (müqayisənin nəticəsi "doğru"dur)
149149
```
150150
151-
We'll cover booleans more deeply in the chapter <info:logical-operators>.
151+
Biz `boolean` tipini <info:logical-operators> fəslində daha dərindən izah edəcəyik.
152152
153153
## The "null" value
154154

0 commit comments

Comments
 (0)