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,11 @@ 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 All @@ -14,5 +14,4 @@ undefined == null
undefined === null
null == "\n0\n"
null === +"\n0\n"
```

```
Loading