how to display lower case in javascript code example Example: js to lowercase var str = "Hello World!"; var res = str.toLowerCase();