toLocaleUpperCase() String JavaScript JS

The JavaScript string toLocaleUpperCase() method transforms the given string into an uppercase letter on the basis of the current locale of the host.

Note: A string can be converted into upper case letters with the toUpperCase() method but the result may vary according to locale or language. To overcome this problem we have to use toLocaleUpperCase().



Return: Locale-specific string with upper case letters.


<!DOCTYPE html>
var a ="Hello World!";
Please follow and like us:
Content Protection by