The toLowerCase()
method returns the calling string value converted to lowercase.
str.toLowerCase()
The toLowerCase()
method returns the value of the string converted to lowercase. toLowerCase()
does not affect the value of the string str
itself.
toLowerCase()
console.log('ALPHABET'.toLowerCase()); // 'alphabet'
Created by Mozilla Contributors, license: CC-BY-SA 2.5