?
What is the purpose of the method localeCompare()?
Answer & Solution
Correct Answer:
Option
A
The method localeCompare() returns a number indicating whether a reference string comes before or after or is the same as the given string in sort order.
Join the Discussion
Login to post a comment or share your explanation.
Login