how to get an element in an array in javascript code example Example: how to get element of an array in javascript var value = [a,b,c,d]; var value_b = value[1];