How to use .toLowerCase() function in Javascript

By FoxLearn 12/18/2024 7:33:11 AM   50
The `.toLowerCase()` function in JavaScript is used to convert a string to lowercase letters. It is a built-in method that can be applied to any string variable or literal.

Here's an example:

let str = "Hello World";
console.log(str.toLowerCase());  // Output: "hello world"