toUpperCase

요약
문자열 전체를 대문자로 변환 - 원래의 str에 영향을 주지 않습니다.
Tags
변환
대소문자
console.log('alphabet'.toUpperCase()); // 'ALPHABET'
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."