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