| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase | [Back] [Original] |
Get to know MDN better
const sentence = "The quick brown fox jumps over the lazy dog.";
console.log(sentence.toUpperCase());
// : "THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG."
toUpperCase()
toUpperCase() JavaScript
console.log("alphabet".toUpperCase()); // 'ALPHABET'
this this
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 |
Stringanchor()at()big()blink()bold()charAt()charCodeAt()codePointAt()concat()endsWith()fixed()fontcolor()fontsize()includes()indexOf()isWellFormed()italics()lastIndexOf()link()localeCompare()match()matchAll()normalize()padEnd()padStart()repeat()replace()replaceAll()search()slice()small()split()startsWith()strike()sub()substr()substring()sup()toLocaleLowerCase()toLocaleUpperCase()toLowerCase()toString()toUpperCase()toWellFormed()trim()trimEnd()trimStart()valueOf()[Symbol.iterator]()Object/Function| Web Proxy Viewer | New URL | Original Page |