javascript uppercase or lower case function code example Example: uppercase and lowercase letters in js str.toLowerCase() str.toUpperCase()