'james' > 'Names' | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

'james' > 'Names'

anyone can explain why 'james' > 'Names' is True?

10th Feb 2017, 12:16 PM
Percy
Percy - avatar
1 Answer
+ 2
Lower case letters have a higher value in the ASCII table than upper case. So 'j' is greater that 'N' according to the comparison which makes the entire word greater.
10th Feb 2017, 12:28 PM
Sean