Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update solution.md #159

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ null == "\n0\n" → false
null === +"\n0\n" → false
```

Some of the reasons:
Səbəblərdən bəziləri:

1. Obviously, true.
2. Dictionary comparison, hence false. `"a"` is smaller than `"p"`.
3. Again, dictionary comparison, first char of `"2"` is greater than the first char of `"1"`.
4. Values `null` and `undefined` equal each other only.
5. Strict equality is strict. Different types from both sides lead to false.
6. Similar to `(4)`, `null` only equals `undefined`.
7. Strict equality of different types.
1. Əlbəttəki, doğru.
2. Lüğət müqayisəsi. `"a"` `"p"`-dən əvvəl gəlir, buna görədə `"false"`.
3. Yenə lüğət müqayisəsinə görə ilk simvol olan `"2"`, `"1"`-dən böyükdür.
4. `null` `undefined` bir-birinə bərabərdir.
5. Ciddi bərabərlik ciddidir. Hər iki fərqli növ səhvə gətirib çıxarır.
6. '(4)' kimi, 'null' yalnız 'müəyyən edilməmiş'ə bərabərdir.
7. Müxtəlif növlər `"false"` verir.