• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

The String Object

The String object enables manipulation and formatting of text strings and also enables substrings within strings to be found.

The toUpperCase and toLowerCase Methods

Two of the simplest methods of the String objects are toUpperCase and toLowerCase. Here is a simple example in which the text inputted into a prompt box is converted to uppercase (shown in Figure 9.13):


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint