11 Vote

JavaScript: Convert String to Lowercase Letters

Info by Progger99 | 2012-03-29 at 13:57

This example converts a string consisting of uppercase and lowercase letters to a string that is written in lower letters completely:

var str = "AbC DEf gH";
str = str.toLowerCase();
// Output is: "abc def gh"

With the function toLowerCase() you are able to convert all characters of a string to their lowercase equivalents, like it is shown in the example.

00 Votes

And if you want to go the other way, you can simply use the function toUpperCase() instead of toLowerCase(). This makes all characters in the string uppercase.
2020-02-04 at 23:01

ReplyPositive Negative

About the Author

AvatarThe author has not added a profile short description yet.
Show Profile


Related Topics

Important Note

Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.


Ask your own question or write your own article on askingbox.com. That’s how it’s done.