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 (ECMA-262) The definition of 'String.prototype.toLowerCase' in that specification. |
Living Standard |
브라우저 호환성
BCD tables only load in the browser
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.