var mystring = "lowercase cha!"; var res = mystring.toUpperCase(); console.log(res); /* output : LOWERCASE CHA! */