πŸ“Š JavaScript
Q. What is the purpose of the method localeCompare()?
  • (A) If the reference string comes before or after another string
  • (B) If the reference string is validated
  • (C) If the string is a reference string
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (A) If the reference string comes before or after another string

Explanation: 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.

Explanation by: Mr. Dubey
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.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
94
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
89%
Success Rate