Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 717 Bytes

File metadata and controls

31 lines (19 loc) · 717 Bytes

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"