Skip to content

Comparisons #39

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

Closed
wants to merge 22 commits into from
Closed
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
@@ -1,5 +1,4 @@


```js no-beautify
5 > 4 → true
"apple" > "pineapple" → false
Expand All @@ -9,13 +8,12 @@ undefined === null → false
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 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. जाहिर है, सच है।
2. यहाँ शब्दकोश की तुलना है, इसलिए गलत है। `"a"` `"p"` से छोटा है।
3. फिर से, शब्दकोश तुलना, `"2"` का पहला करैक्टर `"1"` के पहले करैक्टर से अधिक है।
4. मान `null` और `undefined` एक-दूसरे के बराबर हैं।
5. सख्त समानता सख्त है। दोनों तरफ से अलग-अलग प्रकार झूठे होते हैं।
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 @@ -16,3 +16,4 @@ null == "\n0\n"
null === +"\n0\n"
```


Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy