xxxxxxxxxx
var str = "Hello World!";
var res = str.toLowerCase();
xxxxxxxxxx
const string = "HeLLo woRld"
const lowercased = string.toLowerCase()
console.log(string)
// HeLLo woRld
console.log(lowercased)
// hello world
xxxxxxxxxx
const normalString = "Hello World!"
console.log(normalString) // Output: Hello World!
const lowerString = normalString.toLowerCase()
console.log(lowerString) // Output: hello world!
xxxxxxxxxx
let text1 = "Hello World!"; // String
let text2 = text1.toLowerCase(); // text2 is text1 converted to lower
xxxxxxxxxx
const sentence = 'The quick brown fox jumps over the lazy dog.';
console.log(sentence.toLowerCase());