adplus-dvertising
frame-decoration

Question

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

Posted under JavaScript

Answer: (a).If the reference string comes before or after another string

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the purpose of the method localeCompare()?