String.prototype.toLowerCase()

  • Revision slug: JavaScript/Reference/Global_Objects/String/toLowerCase
  • Revision title: toLowerCase
  • Revision id: 43136
  • Created:
  • Creator: Mgjbot
  • Is current revision? No
  • Comment robot Adding: [[es:Referencia de JavaScript 1.5:Objetos globales:String:toLowerCase]] <<langbot>>

Revision Content

Summary

Returns the calling string value converted to lowercase.

Method of String
Implemented in: JavaScript 1.0, NES2.0
ECMA Version: ECMA-262

Syntax

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

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/Objects/String">String</a></td>
</tr>
<tr>
<td>Implemented in:</td>
<td>JavaScript 1.0, NES2.0</td>
</tr>
<tr>
<td>ECMA Version:</td>
<td>ECMA-262</td>
</tr>
</tbody></table>
<h3 name="Syntax"> Syntax </h3>
<p><code>
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>var upperText="ALPHABET"
document.write(upperText.toLowerCase())
</pre>
<h3 name="See_Also"> See Also </h3>
<p><a href="en/Core_JavaScript_1.5_Reference/Objects/String/toUpperCase">toUpperCase</a>
</p><p><br>
</p>
<div class="noinclude">
</div>
{{ 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" } ) }}
Revert to this revision