JavaScript Strings Comparison
String Comparison
To check whether a string is greater than another, dictionary or lexicographical ordering is used.
Lexicographical ordering is when strings are compared letter-by-letter.
See the example below:
console.log( 'Z' > 'A' ); // true
co...
·2 min read·techstack.hashnode.devUpdated Read the article
Laszlo Tatai
Thank U Brotha!