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
let text1 = "Hello World!"; // String
let text2 = text1.toLowerCase(); // text2 is text1 converted to lower