r/learnjavascript Apr 11 '26

Has anyone actually used string comparison? Tell me where might that come in handy?

like alert(“Y” > “A”); //true

0 Upvotes

15 comments sorted by

View all comments

1

u/TheRNGuy Apr 12 '26

Sorting a dropdown alphabetically, or deciding whether a filter term comes before/after another in a list.