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

Chapter 10. Working with Arrays > Using the Array Object

Using the Array Object

In JavaScript, an array is actually an object. That's what the Array() constructor does: it creates a new object based on the arguments (if any) that you supply within the parentheses. So, like any good object, Array comes with a collection of properties and methods that you can work with and manipulate. The rest of this chapter takes a look at these properties and methods.

The Array Object's Properties

The Array object has only two properties: one (length) that you'll use constantly, and another (prototype) you'll be glad exists for those few times you need it.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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