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
Example
Example
Converts a string to uppercase:
var
str
=
"
Runoob
"
;
document
.
write
(
str
.
toUpperCase
(
)
)
;
Try it »
JavaScript String object