Skip to content
Merged
Show file tree
Hide file tree
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:
بعضی از دلایل:

1. Obviously, true.
2. Dictionary comparison, hence false. `"a"` is smaller than `"p"`.
3. Again, dictionary comparison, first char `"2"` is greater than the first char `"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. true، نیاز به توضیح نداره.
2. false، بر اساس مقایسه لغت نامه ای که `"a"` کوچک تر از `"p"` است.
3. دوباره مانند مثال قبل در مقایسه لغت نامه ای حرف اول `"2"` بزرگ تر از حرف اول عبارت دیگر `"1"` است.
4. ارزش های `null` و `undefined` تنها برابر یکدیگرند.
5. برابری سختگیرانه، سختگیرانه است. به دلیل تفاوت در نوع داده پاسخ false است.
6. مانند مثال شماره `(4)`، `null` تنها برابر `undefined` است.
7. برابری سختگیرانه برای دو داده از دو نوع متفاوت.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ importance: 5

---

# Comparisons
# مقایسه ها

What will be the result for these expressions?
نتیجه نهایی عبارت های زیر چیست؟

```js no-beautify
5 > 4
Expand Down
Loading