Hi Friends 👋,
Welcome To Infinitbility! ❤️
string.toLowerCase() instead of string use your string variable name it will return new string with lowercase all the character.
string.toLowerCase() method to convert string character into lowercase.
Here, we will do
- Create a sample string variable with data.
toLowerCase()method to lowercase the letters
toLowerCase() method to change the string into lowercase.
1// Create a sample string variable with data.2let str = "INfinitBility";3console.log(str)45// Use `toLowerCase()` method to lowercase the letters6str = str.toLowerCase()7console.log(str)
I hope it helps you, All the best 👍.
Follow me on Twitter
Join our email list and get notified about new content
No worries, I respect your privacy and I will never abuse your email.
Every week, on Tuesday, you will receive a list of free tutorials I made during the week (I write one every day) and news on other training products I create.