The toUpperCase() method converts a string to uppercase letters.
The toUpperCase() method converts a string to uppercase letters.
The toUpperCase() method does not change the original string.
string.toUpperCase()
None
A String, representing the value of a string converted to uppercase
Convert the string to uppercase letters:
//convert the string to uppercase letters. var str = "Hello World!"; var res = str.toUpperCase(); console.log(res);// w w w .j a va 2 s. com