You can make a JavaScript string all lowercase and uppercase with two functions. The String.toLowerCase() converts a string to lowercase, and String.toUpperCase()converts a string to uppercase.
Javascript string toLowerCase() an inbuilt method returns the calling string value converted to lowercase. The toLowerCase() function does not affect the value of the string.
The string toUpperCase() returns the calling string value converted to uppercase. This function does not affect any of the special characters, digits, and the alphabets already in uppercase.