JavaScript program to convert given string to lower case
Following program shows you how to convert given string to lower case.
In this program we get string from user and convert that string into lower case using toLowerCase()
var input = prompt("Please enter the string:");
var lowerCase = input.toLowerCase();
console.log("Given string in lower case: " + lowerCase);
Output:
Please enter the string:
HELLO WORLD
Given string in lower case: hello world