Scripter Javascript Tutorial
javascriptmusiclogicscripterbookexcerpttutorial47 Get Information About an Array
Because arrays are objects, more information can be learned about
them than with the previously covered data types (more on objects will
come later in this tutorial). Arrays are effectively lists, so the
length
property is used to get how many objects are in the
array. What is important to remember is that while array indexes start
with 0, the count of values in the array with length will begin with 1
and is counted the way a person would.
var scale = [69, 71, 72];
var length = scale.length; // 3