The toLowerCase()
method is used to change, given string into lowercase.
string.toLowerCase
The toLowerCase()
method attaches to the right side of a string and returns the exact string, but the character in the string is turned into lowercase.
const text = 'ScaN SkilL';
console.log(text.toLowerCase()); // Prints: scan skill
The toLowerCase()
, method like the name suggests changes text to lowercase.