JavaScript toUpperCase()Method
Definition and Usage
The toUpperCase() method is used to convert a string to uppercase.
Syntax
string.toUpperCase()
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the toUpperCase() method.
Examples
Examples
Convert string to uppercase:
var str="Example";
document.write(str.toUpperCase());
Try it Yourself »
Other Extensions
JavaScript String Object