xxxxxxxxxx
const normalString = "Hello World!"
console.log(normalString) // Output: Hello World!
const lowerString = normalString.toLowerCase()
console.log(lowerString) // Output: hello world!
xxxxxxxxxx
var str = "My Big Boy!"
var res = str.toLowerCase(); //res is "my big boy!"
xxxxxxxxxx
const string = "HeLLo woRld"
const lowercased = string.toLowerCase()
console.log(string)
// HeLLo woRld
console.log(lowercased)
// hello world
xxxxxxxxxx
let text1 = "Hello World!"; // String
let text2 = text1.toLowerCase(); // text2 is text1 converted to lower