Return value: This method returns a new string in which all the lowercase letters are converted to uppercase.
Below is an example of the String toUpperCase() Method.
IT IS A GREAT DAY.
Example 3: In this example, the method toUpperCase() converts all the lower case alphabets to their upper case equivalents without affecting the special characters and the digits.
IT IS A 5R&:AMPE@@T DAY.
- Chrome 1 and above
- Edge 12 and above
- Firefox 1 and above
- Internet Explorer 3 and above
- Opera 3 and above
- Safari 1 and above
Please Login to comment...