Easy Tutorial
❮ Prop Video Height Event Ondragover ❯

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 a string to uppercase:

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

JavaScript String Object

❮ Prop Video Height Event Ondragover ❯