File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
1-js/02-first-steps/08-comparison/1-comparison-questions Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 22
33``` js no-beautify
445 > 4 → true
5- " apple " > " pineapple " → false
5+ " alma " > " armud " → false
66" 2" > " 12" → true
77undefined == null → true
88undefined === null → false
99null == " \n 0\n " → false
1010null === + " \n 0\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 ` və ` 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 .
You can’t perform that action at this time.
0 commit comments