how to access objects in an array javascript code example Example: javascript declare array var array = []