-9

I believe this is false, because the strings do not have a value to be measured. However, I may be wrong so I'm hoping someone can offer a second opinion.

console.log("a" < "A");
Ele
  • 33,468
  • 7
  • 37
  • 75

1 Answers1

1

the expression "a" < "A" evaluate to false, as it compare ASCII avlues of both char

"a" < "A"
"a".charCodeAt(0) < "A".charCodeAt(0)
97 < 65
Kepotx
  • 1,095
  • 12
  • 26