toUpperCase()
converts string to upper case.
The toUpperCase() method does not change the original string.
toUpperCase() |
Yes | Yes | Yes | Yes | Yes |
stringObject.toUpperCase();
None.
A string converted to uppercase.
var stringValue = "hello world";
console.log(stringValue.toUpperCase());
The code above generates the following result.