string youppercase javascript code example Example: strtoupper javascript var str = "Hello World!"; var res = str.toUpperCase();