📜

To Uppercase

To Uppercase
입문 문자열 +5pts

Problem

Write a function that converts a string to uppercase.

Examples

Input: toUpper("hello")
Output: "HELLO"

Explanation

이 문제는 **toUpperCase() 메서드**를 사용하여 문자열을 대문자로 변환하는 방법을 학습합니다. ## 핵심 개념: 대소문자 변환 toUpperCase()는 문자열의 모든 소문자를 대문자로 변환합니다. ### 기본 사용법 ```javascript str.toUpperCase() ``` - 원본 문자열은 변경되지 않습니다 (불변성) - 새로운 문자열을 반환합니다 ### 활용 예시 ```javascript "hello".toUpperCase() // "HELLO" "Hello World".toUpperCase()...

View detailed explanation →

Key Concepts

toUpperCase 메서드 대소문자 변환 문자열 불변성 문자열 비교
Time: O(n) Space: O(n)
solution.js
Ctrl + Enter
Run tests to see results here.