xxxxxxxxxx
let text1 = "Hello World!"; // String
let text2 = text1.toLowerCase(); // text2 is text1 converted to lower
xxxxxxxxxx
var str = "My Big Boy!"
var res = str.toLowerCase(); //res is "my big boy!"
xxxxxxxxxx
const lowerCase = (string) => {
const newText = string.toLowerCase();
return newText
};
xxxxxxxxxx
var string = "TO loWer CASE";
console.log(string.toLowerCase()); // to lower case
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!