javascript

Convert all characters to lowercase using toLowerCase() method in javascript

The toLowerCase() function of Javascript string used to convert all the characters of a string to lowercase format.

var str = "World Is Beautiful";
console.log(str.toLowerCase());
Output
world is beautiful

In javascript to convert all characters of a string to its lowercase form, toLowercase() method can be used. 

Was this helpful?