Definition and Usage The toUpperCase() method is used to display a string in uppercase letters. Syntax stringObject.toUpperCase() ...
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> |