[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase [Back]  [Original]

String.prototype.toUpperCase() - JavaScript | MDN

MDN Web Docs

View in English Always switch to English

String.prototype.toUpperCase()

Baseline

20157

toUpperCase() String

const sentence = "The quick brown fox jumps over the lazy dog.";

console.log(sentence.toUpperCase());
// : "THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG."

js
toUpperCase()

toUpperCase() JavaScript

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

this

this

js
const a = String.prototype.toUpperCase.call({
  toString() {
    return "abcdef";
  },
});

const b = String.prototype.toUpperCase.call(true);

// 'ABCDEF TRUE' 
console.log(a, b);

ECMAScript 2027 LanguageSpecification
# sec-string.prototype.touppercase


Web Proxy Viewer  |  New URL  |  Original Page