toUpperCase()
는 문자열의 모든 문자를 대문자로 변환
const str = 'Hello World!'
const upperStr = str.toUpperCase();
console.log(upperStr);
//output : 'HELLO WOLRD!'
toLowerCase()
는 문자열의 모든 문자를 소문자로 변환
const str = 'Hello World!'
const lowerStr = str.toLowerCase();
console.log(lowerStr);
//output : 'hello world!'