📜

To Lowercase

To Lowercase
입문 문자열 +5pts

Problem

Write a function that converts a string to lowercase.

Examples

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

Explanation

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

View detailed explanation →

Key Concepts

toLowerCase 메서드 소문자 변환 문자열 정규화 데이터 비교
Time: O(n) Space: O(n)
solution.js
Ctrl + Enter
Run tests to see results here.