Hi Friends đź‘‹,

Welcome To Infinitbility! ❤️

To lowercase all the characters of string in javascript, use string.toLowerCase() instead of string use your string variable name it will return new string with lowercase all the character.

Today, I’m going to show you How do I lowercase all the characters of string in javascript, as mentioned above, I’m going to create a sample string variable then I will use string.toLowerCase() method to convert string character into lowercase.

Let’s start today’s tutorial on how do you lowercase all the characters of string in javascript.

Javascript lowercase all the characters of string

Here, we will do

  1. Create a sample string variable with data.
  2. Use toLowerCase() method to lowercase the letters

JavaScript provide toLowerCase() method to change the string into lowercase.

// Create a sample string variable with data.
let str = "INfinitBility";
console.log(str)

// Use `toLowerCase()` method to lowercase the letters
str  = str.toLowerCase()
console.log(str)

Output

I hope it helps you, All the best đź‘Ť.