const lowerCase = (string) => {
const newText = string.toLowerCase();
return newText
};
var str = "ExaMple";
var res = str.toLowerCase();
output res -> "example"
string.toLowerCase();
var string = "TO loWer CASE";
console.log(string.toLowerCase()); // to lower case
const string = "A string";
const upperCase = string.toUpperCase();
console.log(upperCase); // -> A STRING
const lowerCase = string.toLowerCase();
console.log(lowerCase); // -> a string
let name = "Collins Rollins"
let rename = name.toLowerCase();
console.log(rename);
//OUTPUT: "collins rollins"
var str = "No Idea";
var res = str.toLowerCase();
console.log('ALPHABET'.toLowerCase()); // 'alphabet'
var lowerCaseName = "Your Name".toLowerCase();
cadena.toLowerCase()
let text1 = "Hello World!"; // String
let text2 = text1.toLowerCase(); // text2 is text1 converted to lower