take string with caps in javascript code example Example: uppercase and lowercase letters in js str.toLowerCase() str.toUpperCase()