0

Can anyone explain me why this:

"Hello" > "World"

is returning false?

Paul R
  • 208,748
  • 37
  • 389
  • 560

1 Answers1

0

It compares them char by char, first it compares "H" > "W" and since that's false. It returns false.

Rashmirathi
  • 1,744
  • 12
  • 10