How to Convert JavaScript String to be All Lowercase and Vice Versa
Read this tutorial and learn the way of making a JavaScript string all lowercase and uppercase with the help of toLowerCase() and toUpperCase() functions.
You can make a JavaScript string all lowercase and uppercase with two functions. The <kbd class="highlighted">String.toLowerCase() </kbd> converts a string to lowercase, and <kbd class="highlighted">String.toUpperCase()</kbd>converts a string to uppercase.
Javascript string toLowerCase
Javascript string toUpperCase
The toLowerCase() and toUpperCase() Functions
Javascript string <kbd class="highlighted">toLowerCase()</kbd> an inbuilt method returns the calling string value converted to lowercase. The <kbd class="highlighted">toLowerCase()</kbd> function does not affect the value of the string.
The string <kbd class="highlighted">toUpperCase()</kbd> 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.