The ES5 spec defined two methods for changing the case of a string,
.toLowerCase(). They work just like Ruby's
'test'.toUpperCase() => "TEST" 'TEST'.toLowerCase() => "test"
There are two similar methods called
.toLocaleLowerCase() which are intended to yield the correct result based on the host environment's locale. I have not seen these methods in the wild but I'm curious if they are used.