how to refernce a javascript object with array elements code example Example: array ub js var fruits = ['Apple', 'Banana'];