🔹🎁 Join my channel to get access to perks:
In today’s video, you’re going to learn about the localeCompare method.
The localeCompare() method returns a number indicating whether a reference string comes before, or after, or is the same as the given string in sort order.
🟢🟠 The string.localeCompare().
🔷 Syntax :
localeCompare(compareString, locales, options)
🔹compareString : The string against which the referenceStr is compared.
🔹locales (Optional) : A string with a BCP 47 language tag, or an array of such strings.
🔹options (Optional) : An object adjusting the output format.
🌍 Social Media Links.
◾ Facebook : https://www.facebook.com/Code.Explained.Official
◾ Twitter : https://twitter.com/code_explained
◾ Instagram : https://www.instagram.com/Code.Explained.Official/
◾ GitHub : https://github.com/CodeExplainedRepo
💲 Suppport the Channel
Paypal : https://paypal.me/CodeExplained
Buy Me a Coffee: https://www.buymeacoffee.com/CodeExplained