myString.toUpperCase() in ECMAScript 262
Return an uppercase version of the string.
- Return Type
- String
Description
Note that the original string is not modified.
var msg = "Hello Visitor #589, how are You?";
var msg2 = msg.toUpperCase();
// ** msg2 is "HELLO VISITOR #589, HOW ARE YOU?"
// ** msg is still "Hello Visitor #589, how are You?"