ToLocaleLowerCase-1

 

JavaScript toLocaleLowerCase() function is used to convert string to lowercase string. See the code snippet:

 
 
 
<!DOCTYPE html> <html> <head> <title>Welcome to LearnKode - A code learning platform</title> </head> <body> <button onclick="convertToLowercase()">Show the lowercase letters</button> <p id="sample"></p> <script> function convertToLowercase() { var str = "I LOVE LEARNKODE"; var result = str.toLocaleLowerCase(); document.getElementById("sample").innerHTML = result; } </script> </body> </html>
Output