how to make a string uppercase in js code example Example: uppercase javascript var str = "Hello World!"; var res = str.toUpperCase(); //HELLO WORLD!