Skip to content

JS String Prototype ToUpperCase

Quincy Larson edited this page Aug 20, 2016 · 1 revision

JavaScript 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

Clone this wiki locally