Question: what is the difference between array and hash table?
Answer: Arrays are ordered, integer-indexed collections of any object. ... A Hash is a collection of key-value pairs. It is similar to an Array, except that indexing is done via arbitrary keys of any object type, not an integer index. Hashes enumerate their values in the order that the corresponding keys were inserted.