Skip to content

Commit c3509e2

Browse files
committed
1.2.5. Article - Undefined
1 parent c267990 commit c3509e2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -166,21 +166,21 @@ Bu sadəcə xüsusi bir dəyərdir və "heç nə", "boş" və ya "bilinməyən d
166166
167167
Yuxarıdakı kod, `age` dəyişənin dəyərinin nə üçünsə bilinməyən və ya boş olduğunu bildirir.
168168
169-
## The "undefined" value
169+
## "undefined" dəyəri
170170
171-
The special value `undefined` also stands apart. It makes a type of its own, just like `null`.
171+
Xüsusi bir dəyər olan `undefined` da ayrıca bir mövqeyə malikdir. Bu, özünəməxsus bir tip meydana gətirir.
172172
173-
The meaning of `undefined` is "value is not assigned".
173+
`undefined` dəyəri, "dəyər təyin edilməyib" anlamına gəlir.
174174
175-
If a variable is declared, but not assigned, then its value is `undefined`:
175+
Əgər bir dəyişən elan olunubsa, lakin onun üçün heç bir dəyər təyin edilməyibsə, onun dəyəri `undefined` olacaq:
176176
177177
```js run
178178
let x;
179179

180-
alert(x); // shows "undefined"
180+
alert(x); // "undefined" göstərir
181181
```
182182
183-
Technically, it is possible to assign `undefined` to any variable:
183+
Texniki olaraq, `undefined` istənilən dəyişənə mənimsədilə bilər:
184184
185185
```js run
186186
let x = 123;
@@ -190,7 +190,7 @@ x = undefined;
190190
alert(x); // "undefined"
191191
```
192192
193-
...But we don't recommend doing that. Normally, we use `null` to assign an "empty" or "unknown" value to a variable, and we use `undefined` for checks like seeing if a variable has been assigned.
193+
... Amma biz bunu etməyi tövsiyə etmirik. Normalda "boş" və ya "bilinməyən" bir dəyəri ifadə etmək üçün `null` istifadə olunur. `undefined` isə əsasən dəyişənin dəyərinin mənimsədildiyini yoxlamaq üçün istifadə edilir.
194194
195195
## Objects and Symbols
196196

0 commit comments

Comments
 (0)