Baseline Widely available
String
ê°ì toUpperCase()
ë©ìëë 문ìì´ì ë문ìë¡ ë³íí´ ë°íí©ëë¤.
const sentence = "The quick brown fox jumps over the lazy dog.";
console.log(sentence.toUpperCase());
// Expected output: "THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG."
구문 매ê°ë³ì
ìì.
ë°í ê°í¸ì¶í 문ìì´ì ë문ìë¡ ë³íí ìë¡ì´ 문ìì´.
ì¤ëª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);
ëª
ì¸ì ë¸ë¼ì°ì í¸íì± ê°ì´ 보기
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