You can use the toLowerCase() method to convert a string to lowercase in JavaScript. For example:

let originalString = "Hello World!";
let lowercaseString = originalString.toLowerCase();
console.log(lowercaseString); // "hello world!"

This method does not modify the original string, it returns a new string with all the characters in lowercase.

Also Read:

Categorized in: