A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase below:

String.prototype.toUpperCase() - JavaScript | MDN

String.prototype.toUpperCase()

Baseline Widely available

O método toUpperCase() retorna o valor da string original convertido em letras maiúsculas.

Sintaxe Valor retornado

Uma nova string representando a string original convertida em maiúsculas.

Exceções
TypeError

Quando chamado em uma string contendo valor null ou undefined, por exemplo, String.prototype.toUpperCase.call(undefined).

Descrição

O método toUpperCase() retorna o valor da string convertido para letras maiúsculas. toUpperCase() não altera o valor da string original.

Exemplos Uso básico
console.log("alfabeto".toUpperCase()); // 'ALFABETO'
Especificações Navegadores compatíveis Veja também

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4