contents   index   previous   next



String toUpperCase()

syntax:

string.toUpperCase()

return:

string - a copy of a string with all of the letters changed to upper case.

 

description:

This method changes the case of a string.

 

see:

String toLowerCase(), String toLocaleUpperCase()

 

example:

var string = new String("Hello, World!");

string.toUpperCase()

 

// This will return the string

//  "HELLO, WORLD!".


String object static methods