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