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

Chapter 11. Arrays > Determining the Size of an Array

11.5. Determining the Size of an Array

All arrays come with a built-in property named length, which indicates the current number of elements (including undefined elements). To access an array's length property, we use the dot operator, like so:

arrayName.length


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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