string.tolower code example
Example 1: tolowercase
const sentence = 'The quick brown fox jumps over the lazy dog.';
console.log(sentence.toLowerCase());
// expected output: "the quick brown fox jumps over the lazy dog."
Example 2: String.toLower() js
const str = "Hello world!";
console.log(str); //Output: "Hello world!"
const String = str.toLowerCase();
console.log(String) //Output: "hello world!"