Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (11 sloc) 414 Bytes

String.prototype.toUpperCase()

The JavaScript method .toUpperCase() returns the same string it was called on, but in all upper case.

Syntax

str.toUpperCase()

Examples


console.log("hello world".toUpperCase()); // Console will output "HELLO WORLD"

Source MDN

Something went wrong with that request. Please try again.