Latest

recent

JavaScript toLowerCase() Method

Definition and Usage

The toLowerCase() method is used to display a string in lowercase letters.

Syntax

stringObject.toLowerCase()


Example

In this example "Hello world!" will be displayed in lower case letters:

<script type="text/javascript">
var str="Hello World!";
document.write(str.toLowerCase());
</script>
JavaScript toLowerCase() Method Reviewed by 1000sourcecodes on 20:50 Rating: 5
Powered by Blogger.