Question: Are arrays a separate data type?
property or the
method. You can always check the type of any variable using the
operator. For a variable that holds an array, the
operator returns object. Here is an example:
var myArray = new Array (1,7,2,6,3,5,4); alert(myArray.length) // 7 alert(myArray.sort()) // 1,2,3,4,5,6,7 alert(typeof myArray) // object