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
Copy file name to clipboardExpand all lines: 1-js/02-first-steps/05-types/article.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -245,23 +245,23 @@ Son üç sətir əlavə izah tələb edə bilər:
245
245
2. `typeofnull` nəticəsi `"object"` olaraq qaytarılır. Bu, səhvdir. Bu, `typeof` operatorunun rəsmi olaraq tanınmış bir xətasıdır və uyğunluq səbəbilə saxlanılıb. Əslində, `null` bir obyekt deyil. O, ayrıca bir tipə malik xüsusi bir dəyərdir. Beləliklə, bu, JavaScript dilində mövcud olan bir qüsurdur.
246
246
3. `typeof alert` nəticəsi `"function"` olur, çünki, `alert` bir funksiyadır. Biz funksiyaları növbəti fəsillərdə öyrənəcəyik. Orada görəcəyik ki, əslində JavaScript-də xüsusi bir "function" tipi yoxdur. Funksiyalar `object` tipinə daxildir. Lakin, `typeof` funksiyalara fərqli davranaraq `"function"` kimi qaytarır. Bu tam doğru deyil, lakin praktikada çox rahatdır.
247
247
248
-
## Summary
248
+
## Xülasə
249
249
250
-
There are 8 basic data types in JavaScript.
250
+
JavaScript-də 8 sadə verilən tipi mövcuddur:
251
251
252
-
- `number` for numbers of any kind: integer or floating-point, integers are limited by ±2<sup>53</sup>.
253
-
- `bigint` is for integer numbers of arbitrary length.
254
-
- `string` for strings. A string may have one or more characters, there's no separate single-character type.
255
-
- `boolean` for `true`/`false`.
256
-
- `null` for unknown values -- a standalone type that has a single value `null`.
257
-
- `undefined` for unassigned values -- a standalone type that has a single value `undefined`.
258
-
- `object` for more complex data structures.
259
-
- `symbol` for unique identifiers.
252
+
- **`number`**: İstənilən növ rəqəmlər üçün, tam və ya onluq kəsr dəyərləri daxildir. Tam ədədlər ±2<sup>53</sup> həddində məhdudlaşdırılıb.
253
+
- **`bigint`**: İxtiyari uzunluqlu tam ədədlər üçündür.
254
+
- **`string`**: "mətn" tipidir. Bir `string` bir və ya daha çox simvolu ehtiva edə bilər. Tək simvol üçün ayrıca bir tip mövcud deyil.
255
+
- **`boolean`**: `true` və `false` məntiqi dəyərləri üçün istifadə olunur.
256
+
- **`null`**: Naməlum dəyərlər üçün nəzərdə tutulmuş ayrıca bir tipdir, yalnız `null` dəyərinə sahibdir.
257
+
- **`undefined`**: Mənimsədilməmiş dəyərlər üçün ayrıca bir tipdir, yalnız `undefined` dəyərinə sahibdir.
258
+
- **`object`**: Daha mürəkkəb verilən strukturlarını saxlamaq üçün istifadə olunur.
259
+
- **`symbol`**: Unikal identifikatorlar yaratmaq üçün istifadə olunur.
260
260
261
-
The `typeof`operator allows us to see which type is stored in a variable.
261
+
`typeof`dəyişənin tipini müəyyənləşdirməyə imkan verir:
262
262
263
-
- Two forms: `typeof x`or`typeof(x)`.
264
-
- Returns a string with the name of the type, like`"string"`.
265
-
- For `null`returns `"object"` -- this is an error in the language, it's not actually an object.
263
+
- İki sintaksis mövcuddur: `typeof x`və ya`typeof(x)`.
264
+
- `string` olaraq tipin adını qaytarır, məsələn,`"string"`.
265
+
- `null`dəyəri üçün `"object"`qaytarır -- bu, dilin daxilində olan bir səhvdir. Əslində, `null` bir obyekt deyil.
266
266
267
-
In the next chapters, we'll concentrate on primitive values and once we're familiar with them, we'll move on to objects.
267
+
Növbəti fəsillərdə, əvvəlcə ibtidai (primitive) dəyərləri öyrənəcəyik və onlarla tanış olduqdan sonra obyektlərə keçəcəyik.
0 commit comments