how to convert word to lowercase in js code example Example: js to lowercase var str = "Hello World!"; var res = str.toLowerCase();