Convert the value of txt to lower case. - Javascript String

Javascript examples for String:Quiz

Description

Convert the value of txt to lower case.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<p id="demo"></p>

<script>
var txt = "Hello World";
document.getElementById("demo").innerHTML = txt.toLowerCase();
</script>// ww  w. j av  a  2  s  . c o  m

</body>
</html>

Related Tutorials