xxxxxxxxxx
var text = "Hello World!";
var lowerCaseText = text.toLowerCase();
console.log(lowerCaseText); // Output: hello world!
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
let name = "Collins Rollins"
let rename = name.toLowerCase();
console.log(rename);
//OUTPUT: "collins rollins"
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