+ 1

"2" > "12"

Why it is true? If checking number 2 > 12 false. If checking length "2" > "12" false. What's is checking? Order? (Like "b" goes after "a" so b > a?).

15th Oct 2020, 12:46 PM
Marcelo Anjos
Marcelo Anjos - avatar
2 Respuestas
15th Oct 2020, 1:26 PM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
0
Something didn't get so clear. And if "55" > "5" codePoint(0) are the same. But then one have 1 index and other no. So got null or \0 or something else? Ps: I will code it to see, but for now I'm away from my computer. If you can help me.
15th Oct 2020, 1:54 PM
Marcelo Anjos
Marcelo Anjos - avatar