Javascript String toLowerCase()
converts string to lower case.
str.toLowerCase()
The converted string is returned from the method and leaves the original string unchanged.
let stringValue = "hello WORLD"; let a = stringValue.toLowerCase(); console.log(a); // "HELLO WORLD" console.log(stringValue);//from w w w . j a v a 2s . co m