Easy Tutorial
❮ Met Win Moveto Prop Style Bordertopwidth ❯

JavaScript toUpperCase() Method

JavaScript String Object


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

Convert the string to uppercase:

var str = "tutorialpro";
document.write(str.toUpperCase());

JavaScript String Object

❮ Met Win Moveto Prop Style Bordertopwidth ❯