대소문자1 [Javascript/JQuery] toUpperCase, toLowerCase 대소문자 바꾸기 js에서 알파벳 소문자를 대문자로 변경하고 싶은 경우 toUpperCase 함수를 사용한다. let text = "user"; 이 처럼 문자열이 소문자인 text를 대문자로 변경하고 싶다면 let text_1 = text.toUpperCase(); console.leg(text_1); // => USER 반대로 대문자를 소문자로 변경하는 경우 toLowerCase 함수를 사용한다. let text = "TEXT"; let text_1 = text.toLowerCase(); console.log(text_1); // => text 2022. 7. 15. 이전 1 다음