[Javascript] How can I convert a string to all lower case?


I want to convert a string to all lowercase, How to do that in Javascript?

1 Answer

3 years ago by

toLowerCase() method is used to convert a string to all upper case.

Check the below example for usage:

let str ="Hello, World!";

console.log(str.toLowerCase());

Run here https://onecompiler.com/javascript/3xns6zdka

3 years ago by Meera