mozilla
Your Search Results

    String.prototype.toLowerCase()

    Summary

    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

    Example: Using toLowerCase()

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

    Specifications

    Specification Status Comment
    ECMAScript 1st Edition. Standard Initial definition. Implemented in JavaScript 1.0.
    ECMAScript 5.1 (ECMA-262)
    The definition of 'String.prototype.toLowerCase' in that specification.
    Standard  
    ECMAScript 6 (ECMA-262)
    The definition of 'String.prototype.toLowerCase' in that specification.
    Release Candidate  

    Browser compatibility

    Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
    Basic support (Yes) (Yes) (Yes) (Yes) (Yes)
    Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
    Basic support (Yes) (Yes) (Yes) (Yes) (Yes) (Yes)

    See also

    Document Tags and Contributors

    Contributors to this page: evilpie, Sheppy, fscholz, Mingun, ziyunfei, Brettz9, Mgjbot, Ptak82, Maian, Dria
    Last updated by: Mingun,
    Hide Sidebar