๐
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.