• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 10. Controlling Text > Modifying Strings

Modifying Strings

You can perform two simple methods on a string to modify its characters:

toUpperCase() and toLowerCase(). Both methods return a string with all uppercase letters or all lowercase letters. If you want to modify only certain letters to uppercase or lowercase, first you’ll need to create substrings of those specific characters, as discussed in the preceding section. Modify the substrings to uppercase or lowercase; then put the string back together with concat().


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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