In the terminal, run the command node
and run the following expressions.
What are their outputs? Is there anything you didn't expect?
"a" < "b"
"A" < "B"
"a" < "B"
"Alice" < "Bob"
"alice" < "Bob"
Characters are compared based on their Unicode numbers (or code points). Take a look at the Unicode Table.