Yes, it is as obvious as I thought it was, but making a string lower case isn’t something I need to do very often (almost never) which is why I went to look it up. And now that I’ve written a post about it I’ll probably never need to look it up again.
alert( "AAA".toLowerCase() );
var foo = "AAA"; alert( foo.toLowerCase() );
Both of the above examples will show "aaa" in a alert dialog box.
alert( "aaa".toUpperCase() );
var foo = "aaa"; alert( foo.toUpperCase() );
Both of the above examples will show "AAA" in a alert dialog box.