JavaScript toUpperCase() Method
Definition and Usage
The toUpperCase() method is used to display a string in uppercase letters.Syntax
stringObject.toUpperCase() |
Example
In this example "Hello world!" will be displayed in upper case letters:<script type="text/javascript"> var str="Hello world!"; document.write(str.toUpperCase()); </script> |
JavaScript toUpperCase() Method
Reviewed by 1000sourcecodes
on
20:49
Rating: