How to use toLowerCase in JavaScript:- Geniusofstudent


  • The toLowerCase() method converts a string to lowercase letters.
  • The toLowerCase() method does not change the original string.


  • Code:-




  • <!DOCTYPE html> 
  • <html> 
  •  
  • <head> 
  •  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  • </head> 
  •  
  • <body> 
  •  
  •  <h1>toLowerCase()</h1> 
  •  
  •  <input type="button" onclick="strfun();" value="Get Answer"> 
  •  
  •  <script> 
  •   function strfun() 
  •   { 
  •    var str = "GOOD COMPANY"; 
  •    alert(str.toLowerCase()); 
  •   } 
  •  </script> 
  •  
  • </body> 
  •  
  • </html>
  • How to use toLowerCase in JavaScript:- Geniusofstudent How to use  toLowerCase in JavaScript:- Geniusofstudent Reviewed by Network security on July 02, 2019 Rating: 5

    No comments:

    Useful Information

    Powered by Blogger.