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

The Length of an Array

Earlier, you read that the length of an array is hidden away within the property length. length is a property of the array, and though it may be hidden, it isn't beyond your reach.

To find out how many elements are in the days_of_week array, you can use the following:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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