DroidScript

JavaScript Reference

str.toUpperCase()

The toUpperCase() method returns the calling string value converted to uppercase.

Syntax

str.toUpperCase()

Description

The toUpperCase() method returns the value of the string converted to uppercase. toUpperCase() does not affect the value of the string itself.

Examples

Using toUpperCase()

console.log('alphabet'.toUpperCase()); // 'ALPHABET'

 Created by Mozilla Contributors and licensed under CC-BY-SA 2.5