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>

Image Credits: Photo by Isis França on Unsplash.

More Similar Posts

No results found.

Menu