string.toLowerCase()

toLowerCase() ๋ฉ”์„œ๋“œ๋Š” ํ˜ธ์ถœ ๋ฌธ์ž์—ด ๊ฐ’์„ ์†Œ๋ฌธ์ž๋กœ ๋ณ€ํ™˜ํ•˜์—ฌ ๋ฐ˜ํ™˜ํ•œ๋‹ค.

const sentence = 'The whiskers of a cat are highly sensitive to touch.';
sentence.toLowerCase(); // "the whiskers of a cat are highly sensitive to touch."

Syntax

str.toLowerCase()

Return value

ํ˜ธ์ถœ ๋ฌธ์ž์—ด ๊ฐ’์„ ์†Œ๋ฌธ์ž๋กœ ๋ณ€ํ™˜ํ•œ ์ƒˆ๋กœ์šด ๋ฌธ์ž์—ด์ด๋‹ค.

Description

toLowerCase() ๋ฉ”์„œ๋“œ๋Š” ์†Œ๋ฌธ์ž๋กœ ๋ณ€ํ™˜๋œ ๋ฌธ์ž์—ด ๊ฐ’์„ ๋ฐ˜ํ™˜ํ•œ๋‹ค. toLowerCase() ๋ฉ”์„œ๋“œ๋Š” ๋ฌธ์ž์—ด str ์ž์‹ ์˜ ๊ฐ’์—๋Š” ์˜ํ–ฅ์„ ์ฃผ์ง€ ์•Š๋Š”๋‹ค.

Examples

toLowerCase() ๋ฉ”์„œ๋“œ ์‚ฌ์šฉํ•˜๊ธฐ

'ALPHABET'.toLowerCase(); // "alphabet"

Last updated

Was this helpful?