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
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff 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
166
166
167
167
Yuxarıdakı kod, `age` dəyişənin dəyərinin nə üçünsə bilinməyən və ya boş olduğunu bildirir.
168
168
169
-
## The "undefined" value
169
+
## "undefined" dəyəri
170
170
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.
172
172
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.
174
174
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:
176
176
177
177
```js run
178
178
let x;
179
179
180
-
alert(x); //shows "undefined"
180
+
alert(x); // "undefined" göstərir
181
181
```
182
182
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:
184
184
185
185
```js run
186
186
let x =123;
@@ -190,7 +190,7 @@ x = undefined;
190
190
alert(x); // "undefined"
191
191
```
192
192
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.
0 commit comments