Skip to content

Commit 203699e

Browse files
authored
Update solution.md
1 parent bee728c commit 203699e

File tree

1 file changed

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

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22

33
```js no-beautify
44
5 > 4true
5-
"apple" > "pineapple"false
5+
"alma" > "armud"false
66
"2" > "12"true
77
undefined == nulltrue
88
undefined === nullfalse
99
null == "\n0\n"false
1010
null === +"\n0\n"false
1111
```
1212

13-
Some of the reasons:
13+
Səbəblərdən bəziləri:
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 kiçikdir, buna görədə false.
17+
3. Yenə, lüğət müqayisəsi, ilk simvol olan `"2"` ilk simvol `"1"`-dən böyükdür.
18+
4. Yalnız `null` `undefined` bir-birinə bərabərdir.
19+
5. Ciddi bərabərlik ciddidir. Hər iki fərqli növ səhvə gətirib çıxarır.
20+
6. '(4)' kimi, 'null' yalnız 'müəyyən edilməmiş'ə bərabərdir.
21+
7. Müxtəlif növlərin ciddi bərabərliyi.

0 commit comments

Comments
 (0)