CodesJava

Easy learning with example program codes

JavaScript String toLowerCase() method

The JavaScript string toLowerCase() method transforms the whole string into lowercase letter. Original string will not be modified.

Syntax:

string.toLowerCase() 

Return:
String with lowercase letters.

Example:

<!DOCTYPE html>
<html>
<body>
<script>   
var a ="HELLO WORLD!";  
document.write(a.toLowerCase());  
</script>
</body>
</html>

Output:

hello world!
Please follow and like us:
error








Copyright © 2019 CodesJava DMCA.com Protection Status