String.prototype.toLowerCase()

toLowerCase() 메서드는 문자열을 소문자로 변환해 반환합니다.
 

구문

str.toLowerCase()

반환값

호출 문자열을 소문자로 변환한 새로운 문자열

설명

toLowerCase() 메서드는 호출 문자열을 소문자로 변환해 반환합니다.  toLowerCase() 는 원래의 str에 영향을 주지 않습니다.

예제

 toLowerCase()

console.log('ALPHABET'.toLowerCase()); // 'alphabet'

명세

표준 상태 비고
ECMAScript 1st Edition (ECMA-262) Standard Initial definition. Implemented in JavaScript 1.0.
ECMAScript 5.1 (ECMA-262)
The definition of 'String.prototype.toLowerCase' in that specification.
Standard  
ECMAScript 2015 (6th Edition, ECMA-262)
The definition of 'String.prototype.toLowerCase' in that specification.
Standard  
ECMAScript Latest Draft (ECMA-262)
The definition of 'String.prototype.toLowerCase' in that specification.
Draft  

브라우저 호환성

Update compatibility data on GitHub
DesktopMobileServer
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetNode.js
toLowerCaseChrome Full support YesEdge Full support 12Firefox Full support 1IE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support 4Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yesnodejs Full support Yes

Legend

Full support  
Full support

참조