Skip to content

js String prototype toUpperCase

Arsen Melikyan edited this page · 2 revisions
Clone this wiki locally

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.