localeCompare method | String Object In JavaScript

Veröffentlicht am: 08 August 2022
auf dem Kanal: Code Explained
7,461
166

🎁 Join my channel to get access to perks:
   / @codeexplained  

🧡 Hello All JavaScript Lovers Outhere!

Today you're going to learn about the String Object In JavaScript.

This tutorial is a series of videos, in each video we will discuss a method (or more) of the String Object in JavaScript.

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)
localeCompare(compareString, locales)
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 :   / code.explained.official  
◾ Twitter :   / code_explained  
◾ Instagram :   / code.explained.official  
◾ GitHub : https://github.com/CodeExplainedRepo

💲 Suppport the Channel
Paypal : https://paypal.me/CodeExplained
Buy Me a Coffee: https://www.buymeacoffee.com/CodeExpl...


Auf dieser Seite können Sie das Online-Video localeCompare method | String Object In JavaScript mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Code Explained 08 August 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 7,461 Mal angesehen und es wurde von 166 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!