The strUpper() method returns the calling string value converted to uppercase. (the value will be converted to a string if it isn't one).
0.9.0
TypeError - When called on null or undefined.
strUpper("Hello"); // HELLOstrUpper("darkness"); // DARKNESSstrUpper(null); // Throws TypeErrorstrUpper(undefined); // Throws TypeError Copy
strUpper("Hello"); // HELLOstrUpper("darkness"); // DARKNESSstrUpper(null); // Throws TypeErrorstrUpper(undefined); // Throws TypeError
The string value to be converted to uppercase.
A new string representing the calling string converted to upper case.
The strUpper() method returns the calling string value converted to uppercase. (the value will be converted to a string if it isn't one).
Since
0.9.0
Throws
TypeError - When called on null or undefined.
Example