mozilla

Revision 43140 of String.prototype.toLowerCase()

  • Revision slug: JavaScript/Reference/Global_Objects/String/toLowerCase
  • Revision title: toLowerCase
  • Revision id: 43140
  • Created:
  • Creator: evilpie
  • Is current revision? No
  • Comment Reverted to earlier version; 9 words added, 2 words removed

Revision Content

 

Summary

Returns the calling string value converted to lowercase.

Method of String
Implemented in: JavaScript 1.0, NES2.0
ECMAScript Edition: ECMA-262 1st Edition

Syntax

string.toLowerCase()

Parameters

None.

Description

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

Examples

Example: Using toLowerCase

The following example displays the lowercase string "alphabet":

var upperText="ALPHABET";
document.write(upperText.toLowerCase());

See Also

toLocaleLowerCase

toUpperCase

 

{{ languages( { "es": "es/Referencia_de_JavaScript_1.5/Objetos_globales/String/toLowerCase", "ja": "ja/Core_JavaScript_1.5_Reference/Global_Objects/String/toLowerCase", "pl": "pl/Dokumentacja_j\u0119zyka_JavaScript_1.5/Obiekty/String/toLowerCase" } ) }}

Revision Source

<p> </p>
<h3 name="Summary">Summary</h3>
<p>Returns the calling string value converted to lowercase.</p>
<table class="fullwidth-table"> <tbody> <tr> <td class="header" colspan="2">Method of <a href="/En/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String">String</a></td> </tr> <tr> <td>Implemented in:</td> <td>JavaScript 1.0, NES2.0</td> </tr> <tr> <td>ECMAScript Edition:</td> <td>ECMA-262 1st Edition</td> </tr> </tbody>
</table>
<h3 name="Syntax">Syntax</h3>
<p><code><em>string</em>.toLowerCase()</code></p>
<h3 name="Parameters">Parameters</h3>
<p>None.</p>
<h3 name="Description">Description</h3>
<p>The <code>toLowerCase</code> method returns the value of the string converted to lowercase. <code>toLowerCase</code> does not affect the value of the string itself.</p>
<h3 name="Examples">Examples</h3>
<h4 name="Example:_Using_toLowerCase">Example: Using <code>toLowerCase</code></h4>
<p>The following example displays the lowercase string "<code>alphabet</code>":</p>
<pre class="brush: js">var upperText="ALPHABET";
document.write(upperText.toLowerCase());
</pre>
<h3 name="See_Also">See Also</h3>
<p><a href="/en/JavaScript/Reference/Global_Objects/String/toLocaleLowerCase" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String/toLocaleLowerCase">toLocaleLowerCase</a></p>
<p><a href="/en/JavaScript/Reference/Global_Objects/String/toUpperCase" title="en/Core_JavaScript_1.5_Reference/Global_Objects/String/toUpperCase">toUpperCase</a></p>
<p> </p>
<p>{{ languages( { "es": "es/Referencia_de_JavaScript_1.5/Objetos_globales/String/toLowerCase", "ja": "ja/Core_JavaScript_1.5_Reference/Global_Objects/String/toLowerCase", "pl": "pl/Dokumentacja_j\u0119zyka_JavaScript_1.5/Obiekty/String/toLowerCase" } ) }}</p>
Revert to this revision