Back

str.toLowerCase()

str.toLowerCase()

The toLowerCase() method returns the calling string value converted to lowercase.

Syntax

str.toLowerCase()

Description

The toLowerCase() method returns the value of the string converted to lowercase. toLowerCase() does not affect the value of the string str itself.

Examples

Using toLowerCase()

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

  Created by Mozilla Contributors, license: CC-BY-SA 2.5