TheDeveloperBlog.com

Home | Contact Us

C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML

JavaScript String toLocaleLowerCase() Method

JavaScript string toLocaleLowerCase() Method with example, by string literal, by string object (using new keyword), javascript string methods, charAt(index) method, concat(str) method, indexOf(str) method, lastIndexOf(str) method, lowerCase() method, upperCase() method, slice(beginIndex, endIndex) method, trim() method, toLowerCase(), slice(), concat(), charCodeAt() method etc.

<< Back to JAVASCRIPT

JavaScript String toLocaleLowerCase() Method

In an earlier section, we had learnt that a string can be easily converted to lowercase letter using toLowerCase() method. While converting the string to lowercase letter the result may vary due to conflicts between different languages. In Western languages the letter 'i' upper cases to letter 'I' while in Turkish the letter 'i' uppercases to dotted letter '?' . To overcome these problems, we can use toLocaleLowerCase() method.

JavaScript string toLocaleLowerCase() method converts the string to lowercase letter on the basis of host's current locale. In most cases, this method returns the similar result as the toLowerCase() method.

Syntax

The toLocaleLowerCase() method is represented by the following syntax:

string. toLocaleLowerCase() 

Returns

A string of lowercase letter on the basis of host's current locale.

JavaScript String toLocaleLowerCase() Method Example

Let's see some simple examples of toLocaleLowerCase() method.

Example 1

Here, we will print the given string in lowercase letter.

<script>
var str="JAVATPOINT";
document.writeln(str.toLocaleLowerCase());
</script>
Test it Now

Output:

TheDeveloperBlog

Example 2

Let's see one more example to print the given string in lowercase letter.

<script>
var str=new String("JAVATPOINT");
document.writeln(str.toLocaleLowerCase());
</script>
Test it Now

Output:

TheDeveloperBlog

Next TopicJavaScript String




Related Links:


Related Links

Adjectives Ado Ai Android Angular Antonyms Apache Articles Asp Autocad Automata Aws Azure Basic Binary Bitcoin Blockchain C Cassandra Change Coa Computer Control Cpp Create Creating C-Sharp Cyber Daa Data Dbms Deletion Devops Difference Discrete Es6 Ethical Examples Features Firebase Flutter Fs Git Go Hbase History Hive Hiveql How Html Idioms Insertion Installing Ios Java Joomla Js Kafka Kali Laravel Logical Machine Matlab Matrix Mongodb Mysql One Opencv Oracle Ordering Os Pandas Php Pig Pl Postgresql Powershell Prepositions Program Python React Ruby Scala Selecting Selenium Sentence Seo Sharepoint Software Spellings Spotting Spring Sql Sqlite Sqoop Svn Swift Synonyms Talend Testng Types Uml Unity Vbnet Verbal Webdriver What Wpf