All arrays come with an instance variable named length, which indicates the current number
of elements in the array (including undefined elements). To access an
array's length variable, we use the
dot operator, like so:
theArray.length
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.