how to convert whole strig in lowercase in js
snippet in javascript

how to convert whole strig in lowercase in js

user8903

var str = "Hello World!";
var res = str.toLowerCase();