Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

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

10. String() > String Object Instance Properties and Methods

String Object Instance Properties and Methods

String object instances have the following properties and methods:

Instance Properties (e.g., var myString = 'foo'; myString.length;):

  • constructor

  • length

Instance Methods (e.g., var myString = 'foo'; myString.toLowerCase();):

  • charAt()

  • charCodeAt()

  • concat()

  • indexOf()

  • lastIndexOf()

  • localeCompare()

  • match()

  • quote()

  • replace()

  • search()

  • slice()

  • split()

  • substr()

  • substring()

  • toLocaleLowerCase()

  • toLocaleUpperCase()

  • toLowerCase()

  • toString()

  • toUpperCase()

  • valueOf()


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint