Latest Code Tutorials

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


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';

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



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.