upper lower js code example Example: to upper javascrit var str = "Hello World!"; var res = str.toUpperCase();