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

Lesson 17. Working with Text > The length Property

The length Property

A fundamental property of textual data is the number of characters comprising a string or collection of characters. A string’s character count is the value of its length property. The use of length is shown in Script 17.6.

Script 17.6.

get the length of "Once upon a time there was a man and his dog."
						--> returns: 45


  

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