Skip to content

Commit a7590b0

Browse files
authoredJan 14, 2025
Merge pull request #159 from Vug6r/patch-2
Update solution.md
2 parents ac4e025 + ca3b4a8 commit a7590b0

File tree

1 file changed

+8
-8
lines changed
  • 1-js/02-first-steps/08-comparison/1-comparison-questions

1 file changed

+8
-8
lines changed
 

‎1-js/02-first-steps/08-comparison/1-comparison-questions/solution.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ null == "\n0\n" → false
1010
null === +"\n0\n"false
1111
```
1212

13-
Some of the reasons:
13+
Bəzi səbəblər:
1414

15-
1. Obviously, true.
16-
2. Dictionary comparison, hence false. `"a"` is smaller than `"p"`.
17-
3. Again, dictionary comparison, first char of `"2"` is greater than the first char of `"1"`.
18-
4. Values `null` and `undefined` equal each other only.
19-
5. Strict equality is strict. Different types from both sides lead to false.
20-
6. Similar to `(4)`, `null` only equals `undefined`.
21-
7. Strict equality of different types.
15+
1. Əlbəttəki, doğru.
16+
2. Lüğət müqayisəsi. `"a"` `"p"`-dən əvvəl gəlir, buna görə də `"false"`.
17+
3. Yenə lüğət müqayisəsinə görə ilk simvol olan `"2"`, `"1"`-dən böyükdür.
18+
4. `null` `undefined` bir-birinə bərabərdir. Digər heç bir dəyərlə bərabər olmaz.
19+
5. Sıx bərabərlik (`===`) eyni zamanda hər iki tərəfin tipini də nəzərə alır. Fərqli tiplər olduqda nəticə həmişə `false` olaraq nəticələnir.
20+
6. `(4)` kimi `null` yalnız `undefined` tipinə bərabərdir.
21+
7. Fərqli tiplər arasında sıx bərabərlik (`===`) mümkün deyil.

0 commit comments

Comments
 (0)