AppDividend
Latest Code Tutorials

Javascript String ToLowerCase Example | String.prototype.toLowerCase() Tutorial

0 101

Get real time updates directly on you device, subscribe now.

Javascript String toLowerCase Example | String.prototype.toLowerCase() Tutorial is today’s topic. The toLowerCase() method returns a calling string value converted to lower case. The new string representing the calling string converted to a lower case. The toLowerCase() method returns a value of the string converted to lower case. A toLowerCase() does not affect the value of the string itself.

Javascript String toLowerCase Example

String.toLowerCase() function converts the entire string to lower case. String toLowerCase() function does not affect any of the special characters, digits and the alphabets that are already in the lower case. Let’s see the following example.

// app.js

let strA = 'Avengers will be a great movie';
console.log(strA.toLocaleLowerCase());

The toLowerCase()  function does not take any arguments.

It merely returns the new string in which all the upper case letters are converted to the lower case.

Run the file by the following command.

node app

See the output below.

 

Javascript String toLowerCase Example

This is how you can convert Javascript Strings To Lower Case.

See the following more examples on converting all the string characters to lowercase.

// app.js

console.log('AppDividend'.toLocaleLowerCase());
console.log('KrunalLathiya'.toLowerCase());

 

String.prototype.toLowerCase() Tutorial

Finally, Javascript String ToLowerCase Example | String.prototype.toLowerCase() Tutorial is over.

Leave A Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.