Learnerslesson
   JAVA   
  SPRING  
  SPRINGBOOT  
 HIBERNATE 
  HADOOP  
   HIVE   
   ALGORITHMS   
   PYTHON   
   GO   
   KOTLIN   
   C#   
   RUBY   
   C++   
   HTML   
   CSS   
   JAVA SCRIPT   
   JQUERY   




toLowerCase() - FUNCTION


toLowerCase() Function


The toLowerCase() Function is used to convert all the characters/letters of the String in lower case.


Example :



<html>
<body>  
<script language = "javascript" type = "text/javascript">
		   
	var x = "HeLLo"
	var y = x.toLowerCase()
	document.write("The String in lower case is ",y)    
    
</script>      
</body>
</html>


Output :



  The String in lower case is hello

In the above code, we have declared a String HeLLo, in which the letters H and two Ls are in upper case.


var x = "HeLLo"
java_Collections


So, we have used the toLowerCase() Function to convert them to lower case and assign to a variable y.


var y = x.toLowerCase()
java_Collections