String.prototype.toLowerCase() code example
Example 1: js tolowercase
str.toLowerCase()
Example 2: String.toLower() js
const str = "Hello world!";
console.log(str); //Output: "Hello world!"
const String = str.toLowerCase();
console.log(String) //Output: "hello world!"
Example 3: js tolowercase use
string.toLowerCase(2)