javascript array element by index code example Example: array ub js var fruits = ['Apple', 'Banana'];