Javascript String toLocaleLowerCase()
converts string to lower case according to current locale.
str.toLocaleLowerCase() str.toLocaleLowerCase(locale) str.toLocaleLowerCase([locale, locale, ...])
If multiple locales are given in an Array, the best available locale is used.
The default locale is the host environment's current locale.
The converted string is returned from the method and leaves the original string unchanged.
let stringValue = "hello WORLD"; let a = stringValue.toLocaleLowerCase(); console.log(a); // "HELLO WORLD" console.log(stringValue);/* www .ja v a2s . c o m*/