Skip to content

Latest commit

 

History

History
57 lines (47 loc) · 1.42 KB

File metadata and controls

57 lines (47 loc) · 1.42 KB
title ms.custom ms.date ms.prod ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic f1_keywords dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
toLowerCase Method (JavaScript) | Microsoft Docs
01/18/2017
windows-client-threshold
devlang-javascript
language-reference
toLowerCase
JavaScript
TypeScript
DHTML
toLowerCase method
dfd543b9-3e7a-4f83-a391-9cde109ad6bc
14
mikejo5000
mikejo
ghogen

toLowerCase Method (JavaScript)

Converts all the alphabetic characters in a string to lowercase.

Syntax

  
      strVariable.toLowerCase()  
"String Literal".toLowerCase()   

Remarks

The toLowerCase method has no effect on non-alphabetic characters.

The following example demonstrates the effects of the toLowerCase method:

var str1 = "This is a STRING.";  
var str2 = str1. toLowerCase();  
document.write(str2);  
  
// Output: this is a string.  

Requirements

[!INCLUDEjsv1]

Applies To: String Object

See Also

toLocaleLowerCase Method (String)
toUpperCase Method (String)