How to covert a string to lowercase using JavaScript

H

How Can We Help?

How to covert a string to lowercase using JavaScript

Use the string.toLowerCase() function as the example below

 
	<script type="text/javascript">
 
	var str="I NEED THIS STRING TO BE CONVERTED TO LOWER CASE";
 
	document.write(str.toLowerCase());
 
	</script>

About the author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

About Author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

Follow Me